Skip to content

Commit 54ef643

Browse files
committed
p3
1 parent 0e088fe commit 54ef643

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎101.md‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,24 @@
1919
[GCC 4.6.3] on linux2
2020
Type "help", "copyright", "credits" or "license" for more information.
2121
>>>
22+
23+
或者是(注意,我在兼顾Python 3了):
24+
25+
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
26+
Type "copyright", "credits" or "license()" for more information.
27+
>>>
2228

2329
这就是交互模式。将在后面长期使用,会伴随你Python的代码生涯。
2430

2531
在`>>>`后面输入`print "Hello, World"`,并按回车。这就是见证奇迹的时刻。
2632

2733
>>> print "Hello, World"
2834
Hello, World
35+
36+
上面的是在Python 2中,下面的是Python 3,注意区别。
37+
38+
>>> print("Hello, World")
39+
Hello, World
2940

3041
如果你从来不懂编程,从这一刻起,就跨入了程序员行列;如果已经是程序员,那么就温习一下当初的惊喜吧!
3142

@@ -48,7 +59,7 @@
4859
`"Hello,World"`是打印的内容,注意双引号,是英文状态下的。引号不是打印内容,它相当于一个包裹,把打印的内容包起来,统一交给Python。
4960

5061
>>> print "Hello, World"
51-
62+
5263
Python接收到你要求她所做的事情:打印Hello,World,于是她就老老实实地执行这个命令,丝毫不走样。
5364

5465
Hello, World
@@ -104,13 +115,13 @@ google一下:Python IDE,会发现,能够进行Python编程的IDE还真的
104115

105116
既然是零基础,就别瞎折腾了,就用Python自带的IDLE。原因就是:简单。
106117

107-
Windows的朋友操作:“开始”菜单->“所有程序”->“Python 2.x”->“IDLE(Python GUI)”来启动IDLE。启动之后,大概看到这样一个图
118+
Windows的朋友操作:“开始”菜单中找到“IDLE(Python GUI)”来启动IDLE。启动之后,大概看到这样一个图(也可能是Python 3版本,根据你的版本而定)。
108119

109120
![](./1images/10103.png)
110121

111122
注意:所看到的界面中显示版本跟这个图不同,因为安装的版本区别。大致模样差不多。
112123

113-
其它操作系统的用户,也都能在找到idle这个程序,启动之后,跟上面一样的图。
124+
其它操作系统的用户,也都能在找到IDLE这个程序,启动之后,跟上面类似的图。
114125

115126
后面我们所有的编程,就在这里完成了。这就是伟大程序员用的第一个IDE。
116127

0 commit comments

Comments
 (0)