python list中每个元素都减去10

写个for循环吧

 

data2= []
for i in data:
    data2.append(i-10)
posted @ 2020-12-26 12:59  bH1pJ  阅读(460)  评论(0编辑  收藏  举报