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
45
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
100
Python-intro-2
liushuaikobe
0
54
GitRadar——毕业论文答辩
liushuaikobe
0
140
NoSQL & MongoDB
liushuaikobe
0
90
Other Decks in Programming
See All in Programming
新宿ダンジョンを可視化してみた
satoshi7190
2
260
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
680
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
490
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
240
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
840
Compose-View Interop in Practice (mDevCamp 2024)
stewemetal
0
130
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
230
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
2
180
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
930
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
190
GitHub Copilotのススメ
marcy731
1
200
SIMD Parallel Programming with the Vector API
josepaumard
0
170
Featured
See All Featured
Scaling GitHub
holman
457
140k
Web development in the modern age
philhawksworth
202
10k
Producing Creativity
orderedlist
PRO
337
39k
Making the Leap to Tech Lead
cromwellryan
124
8.5k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Infographics Made Easy
chrislema
238
18k
Making Projects Easy
brettharned
108
5.5k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
322
20k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
241
1.2M
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