给出一个数字列表,将列表中的每个数字平方并输出
是这个意思?
lst = [1,2,3,8,9] print([n**2 for n in lst])
a=[1,2,3,4] print([pow(i,2) for i in a])