_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › HelloWorld

Contents

1 python


1 python #

py_helloworld.jpg

.. 豌覿 觧企? 蠍磯.. 螻覲企..

In Python2: print "Hello World"
In Python3: print("Hello World")

.. 讌讀.. 磯哀 覈 碁 "hello world" 覯 谿 30覿 蟆 蟇碁碁.
... 譬 覲企.. 2.x 覯螻 3.x 覯螻朱 襷 谿願 ..
.. 覓語 覿覿 2.x 覯碁.. .. 曙 譬 蟆 蟆朱...

2.x 覯...
 python
for i in range(10):
	print i,

3.x 覯...
 python
for i in range(10):
	print(i, end=' ')

襭襯 る慨..
 python
for i in range(3):
    for j in range(3):
        print ("襭=",i, "螳=",i*j, sep=';')

蟆郁骸
襭=;0;螳=;0
襭=;0;螳=;0
襭=;0;螳=;0
襭=;1;螳=;0
襭=;1;螳=;1
襭=;1;螳=;2
襭=;2;螳=;0
襭=;2;螳=;2
襭=;2;螳=;4

語.. 殊.. 所..
蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

蠖 蠍磯ゼ 滑 蠍磯 蠍壱襯 葛.