>>> a = list(range(10))>>> a[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>>> a = [i+1 if i<10 else i*i for i in a]>>> a[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]>>>
posted on 2019-05-24 20:01 kingforn 阅读(142) 评论(0) 编辑 收藏 举报