1 l = [] 2 number = input('请输入数字以空格 隔开>>>:').split() 3 number = [int(x) for x in number] 4 for i in number: 5 i = i**2 6 l.append(i) 7 print(l)