python之range使用举例

比如,我想生成0--9的数字,怎么做,如下:

 

可以使用for循环取值:

posted @ 2020-05-22 16:31  anna1210  阅读(292)  评论(0编辑  收藏  举报