您的位置:首页 > 编程语言 > Python开发

趣学PYTHON 第一章python不是大蟒蛇

2018-01-21 20:24 169 查看
趣学PYTHON 第一章python不是大蟒蛇

把我自己的学习记录在这里,留下一片回忆。

Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32

Type "copyright", "credits" or "license()" for more information.

>>> 

我的电脑装.3.7出问题了,查了好久就是不能解决,只好退而求其次,装个2.7.14用,后面的程序都是在2.7.14上运行的。

>>> print "hello world"

hello world

>>> print 'hello world'

hello world

>>> print ('hello world')

hello world

>>> print ("hello world")

hello world

>>> 2.7.14输出时可以不带括号的,都成功了。

不过还是保存一下的好,

在pythonshell中新建,输入

print "hello world1"
print 'hello world2'
print ('hello world3')
print ("hello world4")保存为helloprint.py
按下F5,就可以输出了

================== RESTART: C:/Python27/lianxi/hellprint.py ==================

hello world1

hello world2

hello world3

hello world4

这一章以简单的hello wrold开始,进入计算机编程。完成,向下一站出发。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python hello 保存