Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Python-intro-1
Search
Shuai Liu
December 06, 2014
Programming
0
54
Python-intro-1
Shuai Liu
December 06, 2014
Tweet
Share
More Decks by Shuai Liu
See All by Shuai Liu
Auto-Layout.pdf
liushuaikobe
2
110
Python-intro-2
liushuaikobe
0
59
GitRadar——毕业论文答辩
liushuaikobe
0
160
NoSQL & MongoDB
liushuaikobe
0
110
Other Decks in Programming
See All in Programming
From the Wild into the Clouds - Laravel Meetup Talk
neverything
0
170
Introduction to kotlinx.rpc
arawn
0
770
DRFを少しずつ オニオンアーキテクチャに寄せていく DjangoCongress JP 2025
nealle
2
290
Drawing Heighway’s Dragon- Recursive Function Rewrite- From Imperative Style in Pascal 64 To Functional Style in Scala 3
philipschwarz
PRO
0
110
PRレビューのお供にDanger
stoticdev
1
240
The Clean ArchitectureがWebフロントエンドでしっくりこないのは何故か / Why The Clean Architecture does not fit with Web Frontend
twada
PRO
27
7.4k
コードを読んで理解するko build
bells17
1
110
Rubyで始める関数型ドメインモデリング
shogo_tksk
0
140
もう少しテストを書きたいんじゃ〜 #phpstudy
o0h
PRO
19
4.2k
Djangoにおける複数ユーザー種別認証の設計アプローチ@DjangoCongress JP 2025
delhi09
PRO
4
500
推しメソッドsource_locationのしくみを探る - はじめてRubyのコードを読んでみた
nobu09
2
340
Boos Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
490
Featured
See All Featured
The Language of Interfaces
destraynor
156
24k
Adopting Sorbet at Scale
ufuk
75
9.2k
Scaling GitHub
holman
459
140k
Become a Pro
speakerdeck
PRO
26
5.2k
A Tale of Four Properties
chriscoyier
158
23k
Making the Leap to Tech Lead
cromwellryan
133
9.1k
Making Projects Easy
brettharned
116
6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
1k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to Think Like a Performance Engineer
csswizardry
22
1.4k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Transcript
Intro to Python by Shuai Liu
agenda • History & Basics • Advanced & Be Pythonic
• Awesome Python Frameworks
History & Basics
“I wrote Python.” ——Guido van Rossum
What’s Python? • Dynamic, strongly typed script language • Object
Oriented & Procedure Oriented & Functional • Open source • Simple & Beautiful & Fast high-level interpreted script
What I could do with Python?
None
Who uses Python?
None
Let’s touch it slightly… • Whitespace (Tab? No!) • A
combination of reference counting and a cycle- detecting garbage collector • 2.x vs. 3.x • >>> import this
When we learning a language… s, e, q, u, e,
n, c, e { “map”: “” } “String” 28.53 function() if else for/while class
After that, you can use a language like C
variable • number: int & float & bool • string
• …
Let’s see dynamic… dynamic
None
some powerful built-in functions • type • str • int
• float
None
Sequence • string • list • tuple
built-in functions • len • enumerate • zip
Something more…
Slice • [ : ] • [ : : ]
dict
built-in functions • dict.update(dict2) • dict.keys() • dict.fromkeys(seq, val=None)
function
branch & loop
Thanks