def Fun(a):
if a>0:
pass
else:
return a,0
if __name__=='__main__':
r1,r2=Fun(1
Python调用函数报错:TypeError: cannot unpack non-iterable NoneType object
最新推荐文章于 2024-05-30 17:16:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
def Fun(a):
if a>0:
pass
else:
return a,0
if __name__=='__main__':
r1,r2=Fun(1