第1小题我会写,但是第2小题不知道该怎么做,是用while循环吗(目前学到了控制结构的分支结构)
price_list = [32,106,5,54,123.8] newlist = list(map(lambda x: x * 0.8 if x > 100 else x, price_list)) print(newlist)