Python是一种通用的解释,交互式,面向对象和高级编程语言。它是由Guido van Rossum在1985 - 1990年创建的。像Perl一样,Python源代码也可以在GNU通用公共许可证(GPL)下获得。Python是以电视节目“Monty Python`s Flying Circus”来命名,并不是以莽蛇(Python)来命名的。
Python 3.0在2008年发布。虽然这个版本应该是不向后兼容的,但后来许多重要的功能已经被反映到兼容版本2.7中,本教程中是以Python 3版本来学习和演示Python编程。
Python的官方网站是:http://www.python.org/ ,可以从官方上找到大部分有关Python编程语言的相关资料,如:各种版本的安装包下载,文档,最新的Python资讯,社区以及教程等等。官方网站打开以后如下所示 -
初识Python程序
下面是一个简单的Python程序 -
#!/usr/bin/python3
print ("Hello, Python!")
重要提示:本教程中,所以实例代码是基于 Python 3 来编写的,由于Python 2与Python 3代码不能兼容,所以希望所有学习本教程的读者安装好 Python 3 及以上版本。
读者
本教程是为希望学习Python编程技能的程序员和专业人士而设计和编写的。本教程还可以作为从零开始学习Python编程语言的入门教程。
前提条件
希望学习本教程的读者都应该对计算机编程术语有一个基本的了解。对其它任何编程语言有基本了解将有助于理解和学习Python编程语言。
Python在线开发工具(免安装)
推荐你使用 Coding Cloud Studio 这款在线云端开发工具编写并运行本教程内所有 Python 代码以及示例。Coding Cloud Studio 是基于腾讯云小主机的开发工作站,提供原生的在线 Linux 命令交互终端环境,同时集成了 Python 2 以及 Python 3,在线开发文本编辑器,你可以直接在工作站中创建 Python 文件并在 Cloud Studio 中运行你写的 Python 程序。无须在自己电脑上安装配置本地 Python 环境。
问题反馈
我们不能保证您在此Python编程教程中不会遇到任何问题。本教程中的讲解,示例和代码等只是根据作者的理解来概括写出。由于作者水平和能力有限,因此不保正所有编写的文章都准确无误。但是如果有遇到任何错误或问题,请反馈给我们,我们会及时纠正以方便后继读者阅读。
- python将函数作为参数传递
- python将字符串转换为日期
- python解析timestamp时间
- Python解析数据
- Python解析tsv
- 如何将Python添加到 Linux 的 PATH 环境变量
- Python的变量作用域
- 在 python 脚本中暂停
- Python os.write()方法
- Python os.walk()方法
- Python os.unlink()方法
- Python os.ttyname()方法
- Python os.tmpfile()方法
- Python os.tempnam()方法
- Python os.tcsetpgrp()方法
- Python os.tcgetpgrp()方法
- Python os.symlink()方法
- Python os.statvfs()方法
- Python os.stat_float_times()方法
- Python os.stat()方法
- Python os.rmdir()方法
- Python os.renames()方法
- Python os.rename()方法
- Python os.readlink()方法
- Python os.removedirs()方法
- Python os.remove()方法
- Python os.read()方法
- Python os.popen()方法
- Python os.pipe()方法
- Python os.pathconf()方法
- Python os.openpty()方法
- Python os.open()方法
- Python os.mknod()方法
- Python os.mkfifo()方法
- Python os.mkdir()方法
- Python os.minor()方法
- Python os.makedirs()方法
- Python os.makedev()方法
- Python os.major()方法
- Python os.lstat()方法
- Python os.lseek()方法
- Python os.listdir()方法
- Python os.link()方法
- Python os.lchmod()方法
- Python os.lchflags()方法
- Python os.isatty()方法
- Python os.getcwdu()方法
- Python os.getcwd()方法
- Python os.ftruncate()方法
- Python os.fsync()方法
- Python os.fstatvfs()方法
- Python os.fdopen()方法
- Python os.fdatasync()方法
- Python os.fchown()方法
- Python os.fchmod()方法
- Python os.fchdir()方法
- Python os.dup2()方法
- Python os.dup()方法
- Python os.closerange()方法
- Python os.close()方法
- Python os.chroot()方法
- Python os.chown()方法
- Python os.chmod()方法
- Python os.chflags()方法
- Python os.chdir()方法
- Python os.access()方法
- Python文件writelines()方法
- Python文件write()方法
- Python文件truncate()方法
- Python文件tell()方法
- Python文件seek()方法
- Python文件readlines()方法
- Python文件readline()方法
- Python文件read()方法
- Python文件next()方法
- Python文件isatty()方法
- Python文件fileno()方法
- Python文件flush()方法
- Python文件close()方法
- Python时间time()方法
- Python时间strptime()方法
- Python时间strftime()方法
- Python时间sleep()方法
- Python时间mktime()方法
- Python时间localtime()方法
- Python时间gmtime()方法
- Python时间ctime()方法
- Python时间clock()方法
- Python时间clock()方法
- Python时间asctime()方法
- Python时间altzone属性
- Python计算时间差
- Python获取当前时间日期
- Python字典values()方法
- Python字典update()方法
- Python字典setdefault()方法
- Python字典keys()方法
- Python字典items()方法
- Python字典has_key()方法
- Python字典fromkeys()方法
- Python字典copy()方法
- Python字典clear()方法
- Python字典type()函数
- Python字典str()函数
- Python字典len()函数
- Python元组tuple()方法
- Python元组min()方法
- Python元组max()方法
- Python元组len()方法
- Python元组cmp()方法
- Python列表sort()方法
- Python列表reverse()方法
- Python列表remove()方法
- Python列表pop()方法
- Python列表count()方法
- Python列表append()方法
- Python列表list()方法
- Python列表min()方法
- Python列表max()方法
- Python列表len()方法
- Python列表cmp()方法
- Python字符串isdecimal()方法
- Python字符串zfill()方法
- Python字符串upper()方法
- Python字符串title()方法
- Python字符串swapcase()方法
- Python字符串strip()方法
- Python字符串startswith()方法
- Python字符串splitlines()方法
- Python字符串split()方法
- Python字符串rstrip()方法
- Python字符串rjust()方法
- Python字符串rindex()方法
- Python字符串rfind()方法
- Python字符串replace()方法
- Python字符串min()方法
- Python字符串max()方法
- Python字符串maketrans()方法
- Python字符串lstrip()方法
- Python字符串lower()方法
- Python字符串ljust()方法
- Python字符串len()方法
- Python字符串join()方法
- Python字符串isupper()方法
- Python字符串istitle()方法
- Python字符串isspace()方法
- Python字符串isnumeric()方法
- Python字符串islower()方法
- Python字符串isdigit()方法
- Python字符串isalpha()方法
- Python字符串index()方法
- Python字符串find()方法
- Python字符串expandtabs()方法
- Python字符串endswith()方法
- Python字符串encode()方法
- Python字符串decode()方法
- Python字符串count()方法
- Python字符串center()方法
- Python字符串capitalize()方法
- Python数字radians()方法
- Python数字degrees()方法
- Python数字tan()方法
- Python数字sin()方法
- Python数字hypot()方法
- Python数字cos()方法
- Python数字atan2()方法
- Python数字atan()方法
- Python数字asin()方法
- Python数字acos()方法
- Python数字uniform()方法
- Python数字shuffle()方法
- Python数字seed()方法
- Python数字random()方法
- Python数字randrange()方法
- Python数字choice()方法
- Python数字sqrt()方法
- Python数字round()方法
- Python数字pow()方法
- Python数字modf()方法
- Python数字min()方法
- Python数字max()方法
- Python数字log10()方法
- Python数字log()方法
- Python数字floor()方法
- Python数字fabs()方法
- Python数字exp()方法
- Python数字ceil()方法
- Python数字abs()方法
- Python pass语句
- Python continue语句
- Python break语句
- Python嵌套循环语句
- Python for循环语句
- Python while循环语句
- Python嵌套if语句
- Python if...elif...else语句
- Python if语句
- Python运算符优先级示例
- Python身份运算符示例
- Python成员运算符示例
- Python逻辑运算符示例
- Python按位运算符示例
- Python赋值运算符示例
- Python比较运算符示例
- Python算术运算符示例
- Python CGI编程
- Python3网络爬虫(四): 登录
- Python3网络爬虫(三): 伪装浏览器
- Python 3开发网络爬虫(二)
- Python 3开发网络爬虫(一)
- 使用Python解释器
- win7下配置python2.7+tornado3开发环境
易百教程移动端:请扫描本页面底部(右侧)二维码并关注微信公众号,回复:"教程" 选择相关教程阅读或直接访问:http://m.yiibai.com 。
加QQ群啦,易百教程官方技术学习群
注意:建议每个人选自己的技术方向加群,同一个QQ最多限加 3 个群。