1 numbers = list(range(1,11)) #把范围产生的数字串转化为列表储存 2 print(numbers)
1 运行结果应该是: 2 [1,2,3,4,5,6,7,8,9,10]
posted on 2018-01-31 23:04 叶倾仙 阅读(2093) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2025 叶倾仙 Powered by .NET 9.0 on Kubernetes