写入文件“for line in File”(Python) f = input("Name the text file: ") file = open(f+".txt", "w") lastName = input("Enter the name: ") ...2024-06-26 已阅读: n次