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

前端 未结 0 1342
一个人的身影
一个人的身影 2021-01-15 22:56

I have a module foo.py that has a function

def a():
   print("hello")

If i run it in terminal with python3 foo.p

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