python运行结果显示none?

2025-04-04 15:50:14
推荐回答(1个)
回答1:

if
choice==1:
print
square_and_cube(length)
去掉print
,直接调用即可;你的函数本没有return数值,print后那就是个none