Submit Search
Upload
Python01
•
Download as PPTX, PDF
•
0 likes
•
199 views
俊
俊杰 李
Follow
中山大学苹果俱乐部2015后台部第一次培训
Read less
Read more
Technology
Report
Share
Report
Share
1 of 15
Download now
Recommended
Config RouterOS openVPN
Config RouterOS openVPN.pdf
Config RouterOS openVPN.pdf
AkashaC1
How to Prevent DNS Attacks on MikroTik
How to Prevent DNS Attacks on MikroTik.pdf
How to Prevent DNS Attacks on MikroTik.pdf
AkashaC1
文献Vpn使用简介和入门
文献Vpn使用简介和入门
BEIJING DREAMS CONSULTANCY CO.,LTD
Presentation given by Rikki Lear at the Manchester HUG event. Focuses on the current state of play and changes for 2016.
SEO in 2016
SEO in 2016
Digital 22 Online Limited
How Indies Can Reclaim App Success
The 3rd Wave
The 3rd Wave
Carla White
dfdf-- Created using PowToon -- Free sign up at http://www.powtoon.com/ -- Create animated videos and animated presentations for free. PowToon is a free tool that allows you to develop cool animated clips and animated presentations for your website, office meeting, sales pitch, nonprofit fundraiser, product launch, video resume, or anything else you could use an animated explainer video. PowToon's animation templates help you create animated presentations and animated explainer videos from scratch. Anyone can produce awesome animations quickly with PowToon, without the cost or hassle other professional animation services require.
Untitled
Untitled
Jesus11jr
Diseños para la elaboración de los Proyectos de robótica.
Plantilla de diseño
Plantilla de diseño
Mauren Herrera
BEER JOHNSTON
00 statics review
00 statics review
fahrenheit
Recommended
Config RouterOS openVPN
Config RouterOS openVPN.pdf
Config RouterOS openVPN.pdf
AkashaC1
How to Prevent DNS Attacks on MikroTik
How to Prevent DNS Attacks on MikroTik.pdf
How to Prevent DNS Attacks on MikroTik.pdf
AkashaC1
文献Vpn使用简介和入门
文献Vpn使用简介和入门
BEIJING DREAMS CONSULTANCY CO.,LTD
Presentation given by Rikki Lear at the Manchester HUG event. Focuses on the current state of play and changes for 2016.
SEO in 2016
SEO in 2016
Digital 22 Online Limited
How Indies Can Reclaim App Success
The 3rd Wave
The 3rd Wave
Carla White
dfdf-- Created using PowToon -- Free sign up at http://www.powtoon.com/ -- Create animated videos and animated presentations for free. PowToon is a free tool that allows you to develop cool animated clips and animated presentations for your website, office meeting, sales pitch, nonprofit fundraiser, product launch, video resume, or anything else you could use an animated explainer video. PowToon's animation templates help you create animated presentations and animated explainer videos from scratch. Anyone can produce awesome animations quickly with PowToon, without the cost or hassle other professional animation services require.
Untitled
Untitled
Jesus11jr
Diseños para la elaboración de los Proyectos de robótica.
Plantilla de diseño
Plantilla de diseño
Mauren Herrera
BEER JOHNSTON
00 statics review
00 statics review
fahrenheit
Python简明教程
Python简明教程
ingong
简单Pthon教程
简单Pthon教程
junjun chen
安裝Python,安裝Anaconda套件,使用Spyder IDE,使用repl.it
Python 01 Introduction
Python 01 Introduction
吳錫修 (ShyiShiou Wu)
Python beginner tutorial
Python beginner tutorial
cri fan
Python in NTNU Lab 212
Python meetup 1
Python meetup 1
Vic Yang
第四章解答
第四章解答
jiannrong
預計 2016 年七月底前完成。
《Python 3.5 技術手冊》第二章草稿
《Python 3.5 技術手冊》第二章草稿
Justin Lin
Oracle enterprise manager cloud control 12c release 5 installation on oracle linux 6.6
Oracle enterprise manager cloud control 12c release 5 installation on oracle ...
Oracle enterprise manager cloud control 12c release 5 installation on oracle ...
Zhaoyang Wang
記錄 crash log 資訊的平台
Crashlytics 使用教學
Crashlytics 使用教學
ShengWen Chiou
OSSF 自由軟體鑄造場工作仿舉辦 CodeIgniter 2.0.X 講課上課投影片
CodeIgniter 2.0.X
CodeIgniter 2.0.X
Bo-Yi Wu
RaspberryPi say about remote control
[2]futurewad樹莓派研習會 141127
[2]futurewad樹莓派研習會 141127
CAVEDU Education
Spring框架,技术详解及使用指导
Spring框架,技术详解及使用指导
yiditushe
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
Andy Dai
使用Lua提高开发效率
使用Lua提高开发效率
gowell
Python簡介, Python安裝與測試, 更新Python模組, 安裝Anaconda, 使用Spyder IDE, 使用Jupyter notebook, 建立虛擬環境
建置Python開發環境
建置Python開發環境
吳錫修 (ShyiShiou Wu)
go 文档
4. Go 工程化实践-0124-v2.pdf
4. Go 工程化实践-0124-v2.pdf
ssuserd6c7621
Pycon China 2015
用Cython封装c++代码为python模块的一点经验
用Cython封装c++代码为python模块的一点经验
Leo Zhou
Android JNI
Android JNI
Android JNI
艾鍗科技
Installation and configuration 11g r2
Installation and configuration 11g r2
Installation and configuration 11g r2
Zhaoyang Wang
Pycon China 2015
用简单语言构建复杂系统
用简单语言构建复杂系统
Leo Zhou
More Related Content
Similar to Python01
Python简明教程
Python简明教程
ingong
简单Pthon教程
简单Pthon教程
junjun chen
安裝Python,安裝Anaconda套件,使用Spyder IDE,使用repl.it
Python 01 Introduction
Python 01 Introduction
吳錫修 (ShyiShiou Wu)
Python beginner tutorial
Python beginner tutorial
cri fan
Python in NTNU Lab 212
Python meetup 1
Python meetup 1
Vic Yang
第四章解答
第四章解答
jiannrong
預計 2016 年七月底前完成。
《Python 3.5 技術手冊》第二章草稿
《Python 3.5 技術手冊》第二章草稿
Justin Lin
Oracle enterprise manager cloud control 12c release 5 installation on oracle linux 6.6
Oracle enterprise manager cloud control 12c release 5 installation on oracle ...
Oracle enterprise manager cloud control 12c release 5 installation on oracle ...
Zhaoyang Wang
記錄 crash log 資訊的平台
Crashlytics 使用教學
Crashlytics 使用教學
ShengWen Chiou
OSSF 自由軟體鑄造場工作仿舉辦 CodeIgniter 2.0.X 講課上課投影片
CodeIgniter 2.0.X
CodeIgniter 2.0.X
Bo-Yi Wu
RaspberryPi say about remote control
[2]futurewad樹莓派研習會 141127
[2]futurewad樹莓派研習會 141127
CAVEDU Education
Spring框架,技术详解及使用指导
Spring框架,技术详解及使用指导
yiditushe
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
Andy Dai
使用Lua提高开发效率
使用Lua提高开发效率
gowell
Python簡介, Python安裝與測試, 更新Python模組, 安裝Anaconda, 使用Spyder IDE, 使用Jupyter notebook, 建立虛擬環境
建置Python開發環境
建置Python開發環境
吳錫修 (ShyiShiou Wu)
go 文档
4. Go 工程化实践-0124-v2.pdf
4. Go 工程化实践-0124-v2.pdf
ssuserd6c7621
Pycon China 2015
用Cython封装c++代码为python模块的一点经验
用Cython封装c++代码为python模块的一点经验
Leo Zhou
Android JNI
Android JNI
Android JNI
艾鍗科技
Installation and configuration 11g r2
Installation and configuration 11g r2
Installation and configuration 11g r2
Zhaoyang Wang
Pycon China 2015
用简单语言构建复杂系统
用简单语言构建复杂系统
Leo Zhou
Similar to Python01
(20)
Python简明教程
Python简明教程
简单Pthon教程
简单Pthon教程
Python 01 Introduction
Python 01 Introduction
Python beginner tutorial
Python beginner tutorial
Python meetup 1
Python meetup 1
第四章解答
第四章解答
《Python 3.5 技術手冊》第二章草稿
《Python 3.5 技術手冊》第二章草稿
Oracle enterprise manager cloud control 12c release 5 installation on oracle ...
Oracle enterprise manager cloud control 12c release 5 installation on oracle ...
Crashlytics 使用教學
Crashlytics 使用教學
CodeIgniter 2.0.X
CodeIgniter 2.0.X
[2]futurewad樹莓派研習會 141127
[2]futurewad樹莓派研習會 141127
Spring框架,技术详解及使用指导
Spring框架,技术详解及使用指导
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
使用Lua提高开发效率
使用Lua提高开发效率
建置Python開發環境
建置Python開發環境
4. Go 工程化实践-0124-v2.pdf
4. Go 工程化实践-0124-v2.pdf
用Cython封装c++代码为python模块的一点经验
用Cython封装c++代码为python模块的一点经验
Android JNI
Android JNI
Installation and configuration 11g r2
Installation and configuration 11g r2
用简单语言构建复杂系统
用简单语言构建复杂系统
Python01
1.
中山大学苹果俱乐部 后台部第一次内培 By JunGor 2015. 10
2.
培训内容 1. 初识C/S架构 2. Python程序设计语言基础
3.
C/S架构
4.
Python 1. 下载与安装 2. 编写一个可运行的HelloWorld程序 3.
基本数据类型和变量 4. 字符串和编码 5. List与Tuple 6. 控制结构 7. Dict与Set 8. 输入和输出
5.
下载安装 地址:https://www.python.org/downloads/ • Windows: 下载Python2.7.10安装包按指示安装 •
Linux与Mac用户一般自带
6.
HelloWorld 1. 打开sublime text新建一个文件 2.
输入如下代码: 3. 保存为后缀名为.py的文件,如hello.py 4. 打开命令提示符, 导航到hello.py所在目录,输入命令“python hello.py”,程序输出“Hello world!”
7.
基本数据类型 • 整数:如1,100,-8080,0,等等 • 浮点数:如1.23,3.14,-9.01,1.23e9,
1.2e-5,等等 • 字符串:以''或""括起来的任意文本,比如'abc',"xyz"等等 • 布尔值:True和False。可用与逻辑运算符and/or/not • *空值:None
8.
变量 • 变量名:一些字母开头的字母、数字、下划线的序列 • 声明一个变量:a
= 1 无需声明该变量的类型,因为Python是动 态语言,与C/C++等静态语言不通,Python解释器能够在运行时判 断变量的类型。但是仍然徐耀在引用一个变量之前声明它 *声明VS定义?
9.
编码问题 • 字符集vs字符编码? • ASKII •
GBXXXX • Unicode字符集和UTF-8/16/32
10.
List和Tulple • list是一种有序的集合,可以随时添加和删除其中的元素。 • 定义:classmates
= ['Michael', 'Bob', 'Tracy'] • 获取元素个数:len(classmates) • 索引访问: • 索引是从0开始,第一个元素classmates[0] • 支持负索引,最后一个元素classmates[-1] • 追加元素到末尾:classmates.append('Adam') • 把元素插入到指定的位置:classmates.insert(1, 'Jack') • 删除末尾的元素:classmates.pop() • 删除指定位置的元素:classmates.pop(1) • 元素的数据类型可以不同:L = ['Apple', 123, True]
11.
List和Tulple • 可嵌套:s =
['python', 'java', ['asp', 'php'], 'scheme'] • tuple和list非常类似,但是tuple一旦初始化就不能修改 • 定义:classmates = ('Michael', 'Bob', 'Tracy') • 定义一个只有1个元素的tuple: • t = (1) • t = (1,)
12.
List和Tulple • 可嵌套:s =
['python', 'java', ['asp', 'php'], 'scheme'] • tuple和list非常类似,但是tuple一旦初始化就不能修改 • 定义:classmates = ('Michael', 'Bob', 'Tracy') • 定义一个只有1个元素的tuple: • t = (1) • t = (1,)
13.
控制结构 条件 循环
14.
Dict与Set • dict全称dictionary,在其他语言中也称为map,使用键-值(key-value) 存储,具有极快的查找速度。 • 定义:d
= {'Michael': 95, 'Bob': 75, 'Tracy': 85} • 数据放入dict:d[‘Adam’] = 67;一个key只能对应一个value,多次对一个key放入 value,后面的值会把前面的值冲掉;key不存在,dict就会报错 • 判断key是否存在:'Thomas' in d • 删除一个key:d.pop('Bob') • set和dict类似,也是一组key的集合,但不存储value。 • 定义:s = set([1, 2, 3]) • 添加元素到set中:s.add(4) • 删除元素:s.remove(4) • 交集、并集:s1 & s2 , s1 | s2
15.
输入输出 • 输入 • raw_input()
vs input()? • 输出 • Print • 格式化输出 %s %d
Download now