1 Star 0 Fork 0

wyt/IncludeOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
remove_licence.py 315 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alf-André Walla 提交于 2019-07-22 18:22 . Add licence removal script
#!/usr/bin/python
import sys
outfile = sys.argv[1]
print(outfile + " is being processed...")
list = ()
with open("remove.txt", "r") as f:
list = f.readlines()
with open(outfile, "r+") as f:
d = f.readlines()
f.seek(0)
for i in d:
if i not in list:
f.write(i)
f.truncate()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/m_wyt/IncludeOS.git
git@gitee.com:m_wyt/IncludeOS.git
m_wyt
IncludeOS
IncludeOS
master

搜索帮助