标签: python
所以我有这段代码,但是我想在文件中添加文本,你能帮我吗?
def createfile(num): with open(f'{name}{num+1}.txt', 'w') as file: pass for num in range(number): createfile(num) print('Alright')