Python For Loop Tutorial - Web Development Tutorials

Python For Loop Tutorial - Web Development Tutorials

瀏覽:1280
日期:2024-07-09
AllAboutMike June 8, 2014, 3:47 p.m. For loop doesn't really work like you described here. Try this: print(range(1,3)) You get: [1,2] So: for a in range(1,3): print(a) Means: for each value (we'll call it 'a') in range(1,3) (which is the list [1,2]): prin...看更多