1 Star 0 Fork 38

YeePengWang / Blasting_dictionary

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jiahouzhui.py 500 Bytes
一键复制 编辑 原始数据 按行查看 历史
rootphantomer 提交于 2015-09-05 13:05 . update
#!/usr/bin/env python
# coding=utf-8
#author:phantomer
#github:https://github.com/rootphantomer
#weibo:http://weibo.com/527819757
def jiahouzhui():
txt=raw_input("字典名:")
file=open(txt,"r+")
lines=file.readlines()
file.close()
write=raw_input("要加入的后缀名:")
file1=open("name.txt","w+")
for line in lines:
line=line.strip('\n')
file1.write(line+write)
file1.close()
def main():
jiahouzhui()
if __name__=='__main__':
main()
Python
1
https://gitee.com/yeepongwong/Blasting_dictionary.git
git@gitee.com:yeepongwong/Blasting_dictionary.git
yeepongwong
Blasting_dictionary
Blasting_dictionary
master

搜索帮助