def calc(num):
return num**2,num**3
或
def calc(num):
return (num**2,num**3)
def calc(num):
return num**2,num**3
if __name__ == '__main__':
calc(2)[0]
calc(2)[1]
def calc(num):
return num**2,num**3
if __name__ == '__main__':
a,b = calc(2)