在python3.2.2中,range(1,10)为什么不是[1,2,3,4,5,6,7,8,9],却是range(1,10)

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/30 11:41:36
在python3.2.2中,range(1,10)为什么不是[1,2,3,4,5,6,7,8,9],却是range(1,10)

在python3.2.2中,range(1,10)为什么不是[1,2,3,4,5,6,7,8,9],却是range(1,10)
在python3.2.2中,range(1,10)为什么不是[1,2,3,4,5,6,7,8,9],却是range(1,10)

在python3.2.2中,range(1,10)为什么不是[1,2,3,4,5,6,7,8,9],却是range(1,10)
python2.x 中,range返回的是一个列表
python3.x中,range返回的是一个迭代值
类似for n in range(1,10):之类的可以照常使用
如果要在3.x中产生1-10的列表,可以list(range(1,10))~

在python3.2.2中,range(1,10)为什么不是[1,2,3,4,5,6,7,8,9],却是range(1,10) python3中range如何生成一个无穷的生成器在python3中口否用range生成一个0到正无穷的迭代器?当然中间会break出来 请问range在英语中怎么用? Sheet1.Range(a1) = Sheet2.Range(a1) * Sheet2.Range(h1)在VBA中有没有更简洁的语句? 在VBA中,用range(A65565)表示整列,那用range怎么表示正行? 在VBA中Range(a1).End(xlDown).Row和Range(a1).End(xlup).Row什么区别啊还有在VBA中Range(a1).End(xltoright). colour range在photoshop中是什么如题? 英文中range是什么意思? vhdl中range是什么意思 range advertising time range is longer中range怎么解释 英语翻译翻译:拥有广博的知识能解决学习中碰到的许多困难.(range)请在句子中用到range, range of choices 和 advertising time range is longer 中range怎么解释 在函数概念中,domain 代表定义域,range代表值域.该怎样计算?怎么区分? 在VBA中Range(a1).End(xlDown).Row值会时对时错是什么原因 请问在VBA中我要复制sheet2中的Range(Cells(1,1),Cells(3,28))到同一个文件的sheet1中,为什么出错Sheet1.Range(Cells(6,1),Cells(8,28)).Value = Sheet2.Range(Cells(1,1),Cells(3,28)).Value提示的错误是方法“range”作用于对 VBA中Range(BB1)什么意思 the high end of the range 1.Asustek adds to high end of its netbook range 2.STOCKS NEWS US-VIX moves to low end of range as S&P 500 up请问这两句中的the high/ low end of range确切的中文意思是什么,在翻译中有没有固定的句式.