Python 基础教程

Python 教程 · 2019-01-25 13:45:54
python

Python是一种解释型、面向对象、动态数据类型的高级程序设计语言。

Python由Guido van Rossum于1989年底发明,第一个公开发行版发行于1991年。

像Perl语言一样, Python 源代码同样遵循 GPL(GNU General Public License)协议。

本教程主要针对Python 2.x版本的学习,如果你使用的是Python 3.x版本请移步至Python 3.X版本的教程。


谁适合阅读本教程?

本教程适合想从零开始学习Python编程语言的开发人员。当然本教程也会对一些模块进行深入,让你更好的了解Python的应用。


学习本教程前你需要了解

在继续本教程之前,你应该了解一些基本的计算机编程术语。如果你学习过PHP,ASP等编程语言,将有助于你更快的了解Python编程。


执行Python程序

对于大多数程序语言,第一个入门编程代码便是"Hello World!",以下代码为使用Python输出"Hello World!":

实例(Python 2.0+)

#!/usr/bin/python print "Hello, World!"

Python 3.0+版本已经把print作为一个内置函数,正确输出"Hello World!"代码如下:

实例(Python 3.0+)

#!/usr/bin/python3 print("Hello, World!")

相关文章

Python2.7.14 中文手册

Python IDE(集成开发环境)介绍

Python 编码规范(Google)

Python 3.X版本的教程

点击查看所有 Python 教程 文章: https://www.codercto.com/courses/l/8.html

查看所有标签

Dreamweaver CS3 Bible

Dreamweaver CS3 Bible

Joseph W. Lowery / Wiley / May 21, 2007 / $49.99

Book Description Learn to create dynamic, data-driven Web sites using the exciting enhancements in the Dreamweaver CS3 version. You get a thorough understanding of the basics and then progress to l......一起来看看 《Dreamweaver CS3 Bible》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试