Python file runs in terminal but not in the module that imported it

前端 未结 0 1463
鱼传尺愫
鱼传尺愫 2021-01-15 23:30

I have a module foo.py that has a function

def a():
   print("hello")

If i run it in terminal with python3 foo.p

相关标签:
回答
  • 消灭零回复
提交回复
热议问题