Python can of course return multiple variable values
Examples of functions
def a_b():
a=1
b=2
return a,b
(x,y)=a_b()
print('x,y:',x,',',y)
输出:x,y: 1 , 2
Above, you can
Python can of course return multiple variable values
Examples of functions
def a_b():
a=1
b=2
return a,b
(x,y)=a_b()
print('x,y:',x,',',y)
输出:x,y: 1 , 2
Above, you can