【发布时间】:2020-07-13 13:21:10
【问题描述】:
def hello():
x=1
return
print(type(hello))
将<class 'function'> 作为其输出,但是
def hello():
x=1
return
print(type(hello()))
将<class 'NoneType'> 作为其输出。为什么会这样?
【问题讨论】:
-
可能要指定语言