Home > Q&A > body text
阿神2017-04-17 16:09:49
def test(): num = 0 num += 1 return num def test2(): new_num = test() print test()
You can directly reference the function name test(), or assign it to other variables: new_num = test().