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

趣学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开始,进入计算机编程。完成,向下一站出发。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值