「Python Range」の版間の差分
ナビゲーションに移動
検索に移動
1行目: | 1行目: | ||
− | == | + | ==[[Python]]i Range== |
[[Python]] | | [[Python]] | | ||
− | + | [http://python.secsup.org/?p=47 Python Osmosis ] | |
− | === | + | ===[[R]]ange=== |
Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] on win32 | Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] on win32 | ||
11行目: | 11行目: | ||
Personal firewall software may warn about the connection IDLE | Personal firewall software may warn about the connection IDLE | ||
makes to its subprocess using this computer's internal loopback | makes to its subprocess using this computer's internal loopback | ||
− | interface. This connection is not | + | interface. This connection is not [[vi]]sible on any external |
interface and no data is sent to or received from the Internet. | interface and no data is sent to or received from the Internet. | ||
**************************************************************** | **************************************************************** |
2020年2月16日 (日) 04:31時点における最新版
Pythoni Range
Range
Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 2.6.3 >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(5, 10) [5, 6, 7, 8, 9] >>> range(0, 10, 3) [0, 3, 6, 9] >>> a = ['Mary', 'had', 'a', 'little', 'lamb'] >>> for i in range(len(a)): print i, a[i] 0 Mary 1 had 2 a 3 little 4 lamb >>>
© 2006 矢木浩人