请教在shell中调用python并获取py返回值的问题

2025-05-17 11:41:46
推荐回答(1个)
回答1:

python没有规定一个main()。

需要返回值的话,应该用:

import sys
sys.exit(0)