返回列表 發帖
  1. out=""
  2. with open(r'read (2).txt','r') as r:
  3.     str1=r.readline()
  4.     for i in range(len(str1)):
  5.         str2=ord(str1[i])+2
  6.         str3=chr(str2)
  7.         out+=str3
  8. with open(r'write.txt','w') as w:
  9.     w.write(out)
複製代碼

TOP

返回列表