python出现TypeError: an integer is required (got type str)错误
把文件打开的参数填写完整即可
file1 = open(‘a.txt’, ‘a’, encoding = “utf-8”)
file1 = open('a.txt', 'a', encoding = "utf-8")
python出现TypeError: an integer is required (got type str)错误
把文件打开的参数填写完整即可
file1 = open(‘a.txt’, ‘a’, encoding = “utf-8”)
file1 = open('a.txt', 'a', encoding = "utf-8")