📅  最后修改于: 2022-03-11 14:55:00.642000             🧑  作者: Mango
def function(number):
negative = 10
positive = 1
negative_side = []
positive_side = []
while negative >= 1 and positive <= 10:
negative_side.append((number - negative)**2)
positive_side.append((number + positive)**2)
negative -= 1
positive += 1
negative_side.append(number**2)
print(negative_side + positive_side)