NameError: name 'host' is not defined

后端 未结 3 1988
猫巷女王i
猫巷女王i 2021-01-28 17:23

I\'m new in python programming. When i try running a simple python script i get error like this in my terminal

root@bt:/tmp# python code.py
Traceback (most recen         


        
3条回答
  •  逝去的感伤
    2021-01-28 18:09

    you are defining host in the first line of try/except
    i believe the error is in that first line.
    to debug this take remove the try/except to see what the actual error is.

提交回复
热议问题