pythonw.exe or python.exe?

前端 未结 6 1582
旧时难觅i
旧时难觅i 2020-11-22 08:36

Long story short: pythonw.exe does nothing, python.exe accepts nothing (which one should I use?)

test.py:

print \"a\"
         


        
6条回答
  •  生来不讨喜
    2020-11-22 09:20

    If you don't want a terminal window to pop up when you run your program, use pythonw.exe;
    Otherwise, use python.exe

    Regarding the syntax error: print is now a function in 3.x
    So use instead:

    print("a")
    

提交回复
热议问题