安裝pytest or nose 後會自動擴充setup.py 命令, 新增一個test 命令 ... y): return x+y if __name__ == '__main__': import doctest doctes.testfile('test.txt').
確定! 回上一頁