问一个小问题
tool = 1
newfile = 0
while tool == 1:
    userInput = (str(input("")))
    if userInput == "new": 新
代码可以高亮一下,编辑器代码块旁边有个输入框,选择语言可以高亮:
tool = 1
new_file = 0
while tool == 1:
    user_Input = (str(input(">>>")))
    if user_Input == "new": #新建一个文件
        print(" ")
        user_Input_New_File = (str(input(">>>")))
        with open(user_Input_New_File, "w") as f:
            new_file = f.readlines()