井民全觀點 (Jing's Perspective)
2019年1月23日 星期三
[python] 回傳給自動測試 script 你的結果
if
__name__ ==
"__main__"
:
if
main():
sys.exit(
0
)
# test success
else
:
sys.exit(
1
)
# test failure
‹
›
首頁
查看網路版