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

TOP

返回列表