python的程序有地方没有看懂

为什么第一题会返回none的值,temp不是已经等于hello()了吗?具体原因是什么呢?
img

你要考虑到temp = hello()这句赋值是什么含义,它代表调用hello()函数,把函数的返回值保存到temp变量中。
由于hello()函数没有写return语句,python会自动返回None对象

print()是输出 不是返回数据吧应该是