简体   繁体   中英

Python: equivalent to Ruby's a = [0..200]

Is there an equivalent in Python of Ruby's array = [0..200] ? It should produce an array (or list in Python's parlance) of integers from 0 to 200 .

只需在Python中使用以下代码:

range(0, 200)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM