Python中没有void函数。没有显式的函数 return 回报 None ,类型的对象 NoneType . 尝试 print(type(None)) 或 print(None.__class__)
return
None
NoneType
print(type(None))
print(None.__class__)
print 打印到文本流,不返回任何内容。
print
https://docs.python.org/3/library/functions.html#print