趣学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 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 第一章 基础知识
- Head First Python第一章:列表
- Python源码剖析----第一章
- 趣学Python 教孩子学编程pdf
- OpenCV-Python[第一章]——简介
- Python - 基础教程学习(第一章 & 第二章)
- ‘python’ 不是内部或外部命令
- 机器学习第一章:python数据处理与可视化
- 趣学PYTHON第二章计算与变量
- 《我不是药神》30亿票房真正秘诀是什么?Python告诉我真正的原因
- python 不是内部或外部命令
- python 第一章 介绍-1.python特点.
- [Python编程实战] 第一章 python的创建型设计模式1.1抽象工厂模式
- python 不是内部或外部命令
- 第一章 flask安装与激活 (python 3.6+windows)
- 趣学Python-教孩子学编程--第四章
- 第一章 Python介绍
- 趣学Python-教孩子学编程--第八章
- 趣学python第6章1循环for
- 用python写网络爬虫读书笔记 第一章网络爬虫简介