摘要: 1 一行 For 循环 #For循环在一行mylist = [200, 300, 400, 500] #正常方式 result = [] for x in mylist: if x > 250: result.append(x) print(result) # [300, 400, 500] #一行 阅读全文
posted @ 2022-11-20 16:48 华小电 阅读(58) 评论(0) 推荐(0) 编辑