这样的一个 tt.py 文件,内容如下:
在python环境是没有问题的如下面的图片所示
import time
import os
def printtest(s):
with open("1.txt",'a') as f:
f.write("000")
f.write(s
这样的一个 tt.py 文件,内容如下:
在python环境是没有问题的如下面的图片所示
import time
import os
def printtest(s):
with open("1.txt",'a') as f:
f.write("000")
f.write(s