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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Shuai Liu
December 06, 2014
Programming
79
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
190
Other Decks in Programming
See All in Programming
AI駆動開発勉強会 広島支部 第一回勉強会 AI駆動開発概要とワークショップ
hayatoshimiu
0
400
OSもどきOS
arkw
0
270
色即是空、空即是色、データサイエンス
kamoneggi
1
200
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
250
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
210
Oxlintのカスタムルールの現況
syumai
5
850
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
1.2k
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.1k
Skillは並べた。動かなかった。契約で繋いだ。— 65個のSkillから、自走する開発サイクルへ
junholee
0
780
1人1案件のプロダクトエンジニア時代に、"プロセス監督"としてチャレンジしたこと
non0113
0
350
CSC307 Lecture 17
javiergs
PRO
0
260
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
2
210
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2k
Utilizing Notion as your number one productivity tool
mfonobong
4
310
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
370
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
22k
The agentic SEO stack - context over prompts
schlessera
0
790
Game over? The fight for quality and originality in the time of robots
wayneb77
1
180
Balancing Empowerment & Direction
lara
6
1.1k
How to build a perfect <img>
jonoalderson
1
5.5k
Statistics for Hackers
jakevdp
799
230k
Test your architecture with Archunit
thirion
1
2.2k
Designing for humans not robots
tammielis
254
26k
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