所以,当我想测试这个函数时,代码将是这样的:import sys from foomodule import foo def test_foo(): foo() output = sys.stdout.getline().strip() # because std.
確定! 回上一頁