Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当函数不返回“有用”对象时,Python 函数使用的对象类型是什么?例如:
from time import sleep sleep(2)
缺少 return 语句与返回 None 相同
>>> sleep(2) is None True