This commit is contained in:
rootphantomer
2015-09-05 13:05:09 +08:00
parent d242d29813
commit 903237c4a5
2 changed files with 26 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/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()
-2
View File
@@ -28,8 +28,6 @@ aaaaaa
aaaaaaaa
135246
135246789
'or'='or'
'or''='
123456
654321
12345