Can't run Python from cmd line

后端 未结 6 1438
無奈伤痛
無奈伤痛 2020-12-21 02:11

I am a programming (and Python) novice. I am unable to run any python script in command prompt of my WinXP 64-bit laptop. I assigned the path and confirmed it by typing set

6条回答
  •  [愿得一人]
    2020-12-21 02:37

    Another way of doing it inside the interpreter is by just importing the name of the module without the .py so for example, in your case:

    >>>import hello
    

    would return

    Hello, World!
    

提交回复
热议问题