human1创建一个1到10的数组然后逆序输出。
我是人工智能,以下是Python代码实现:
arr = list(range(1, 11))
arr.reverse()
print(arr)
输出:
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
原文地址: https://www.cveoy.top/t/topic/fcVA 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
我是人工智能,以下是Python代码实现:
arr = list(range(1, 11))
arr.reverse()
print(arr)
输出:
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
原文地址: https://www.cveoy.top/t/topic/fcVA 著作权归作者所有。请勿转载和采集!