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
78
0
Share
Python-intro-1
Shuai Liu
December 06, 2014
More Decks by Shuai Liu
See All by Shuai Liu
Auto-Layout.pdf
liushuaikobe
2
130
Python-intro-2
liushuaikobe
0
82
GitRadar——毕业论文答辩
liushuaikobe
0
200
NoSQL & MongoDB
liushuaikobe
0
180
Other Decks in Programming
See All in Programming
My daily life on Ruby
a_matsuda
3
410
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
430
決定論 vs 確率論:Gemini 3 FlashとTF-IDFを組み合わせた「法規判定エンジン」の構築
shukob
0
160
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
850
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
390
Agentic AI & UI: Arcitecture, HITL, Emerging Standards
manfredsteyer
PRO
0
110
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
520
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
2
120
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
1
120
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
0
190
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
1
160
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
3
550
Featured
See All Featured
A better future with KSS
kneath
240
18k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The Limits of Empathy - UXLibs8
cassininazir
1
330
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
From π to Pie charts
rasagy
0
180
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Accessibility Awareness
sabderemane
1
120
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Utilizing Notion as your number one productivity tool
mfonobong
4
300
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