这句代码怎么理解
result = data_of_square(16) C = result[0] S = result[1] print('周长 = {}'.format(C)) # ==> 周长 = 64 print('面积 = {}'.format(S)) # ==> 面积 = 256
不理解为啥0,1 就能输出周长面积
result = data_of_square(16) C = result[0] S = result[1] print('周长 = {}'.format(C)) # ==> 周长 = 64 print('面积 = {}'.format(S)) # ==> 面积 = 256
不理解为啥0,1 就能输出周长面积
2022-06-24
举报