摘要:
1 #!/usr/bin/env python 2 import random 3 temp = "" 4 for i in range(6): 5 num = random.randrange(0, 4) 6 if num == 3 or num == 1: 7 ret1 = random.randrange(0, 10) 8 t... 阅读全文
摘要:
1 #!/usr/bin/env python 2 with open("ha.log",'r',encoding="utf-8") as f,open("ha1.log",'w',encoding="utf-8") as f1: 3 for line in f : 4 f1.write(line) 阅读全文