python写一个小程序
问题相关代码:from os import*with open(r"E:\编程\Python\控制器\游戏管理.pyw","w+")as f:f.write("写入内容")
TypeError: 'str' object cannot be interpreted as an integer
正常写入数据
请问你是那一行报错啊?
你那个.pyw,这个怎么能是pyw呢?