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

語.. 殊.. 所..