Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
弄蛇人的程式語言入門
Poren Chiang
July 15, 2014
Technology
2
250
弄蛇人的程式語言入門
2014/07/15 Workshop @ SITCON Summer Camp 2014, National Chengchi University, Taipei, Taiwan
Poren Chiang
July 15, 2014
Tweet
Share
More Decks by Poren Chiang
See All by Poren Chiang
Digital Government Landscape in Taiwan: Schnitzels, Whistles, Unicorns
rschiang
0
6
g0v hackath52n proposal: Language Portal
rschiang
0
20
有備無患,先掃再說? / Save for a Rainy Day? Observations and controversies of 1922 SMS registration system
rschiang
0
140
AGPL 與大 SaaS 時代授權的逆襲 / The License Strikes Back!: AGPL and Cloud-Targeting Licenses in the era of SaaS
rschiang
0
110
Plus, and Beyond!: Open source licenses, Creative Commons, & how to use them
rschiang
0
51
簡訊實聯制的開放資料問題 / The Curious Case of 1922 SMS
rschiang
0
32
重構黑箱社會 / Restructuring a Black Box Society
rschiang
0
330
SITCON LT @ g0v NY
rschiang
0
97
Community and beyond: building a sustainable community
rschiang
0
120
Other Decks in Technology
See All in Technology
目指せCoverage100%! AutoScale環境におけるSavings Plans購入戦略 / JAWS-UG_SRE_Coverage
taishin
0
520
開発者と協働できるメトリクスダッシュボードを作ろう!/SRE Lounge 2023
lmi
3
610
ラズパイとGASで加湿器の消し忘れをLINEでリマインド&操作
minako__ph
0
160
Google Cloud Workflows: API automation, patterns and best practices
glaforge
0
110
01_ユーザーリサーチ実施の進め方
kouzoukaikaku
0
770
OPENLOGI Company Profile
hr01
0
12k
NGINXENG JP#2 - 4-NGINX-エンジニアリング勉強会
hiropo20
0
130
Dockerに疲れた人のためのLXDではじめるシステムコンテナ入門
devops_vtj
0
130
メドレー エンジニア採用資料/ Medley Engineer Guide
medley
3
5.1k
IoT から見る AWS re:invent 2022 ― AWSのIoTの歴史を添えて/Point of view the AWS re:invent 2022 with IoT - with a history of IoT in AWS
ma2shita
0
290
SSMパラメーターストアでクロススタック参照の罠を回避する
shuyakinjo
0
8k
Deep dive in Reserved Instance ~脳死推奨量購入からの脱却~
kzkmaeda
0
550
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
326
55k
Designing for humans not robots
tammielis
245
24k
Happy Clients
brianwarren
90
5.8k
Building Your Own Lightsaber
phodgson
96
4.9k
The Invisible Side of Design
smashingmag
292
48k
10 Git Anti Patterns You Should be Aware of
lemiorhan
643
54k
Large-scale JavaScript Application Architecture
addyosmani
499
110k
Optimizing for Happiness
mojombo
365
64k
Art, The Web, and Tiny UX
lynnandtonic
284
18k
The Mythical Team-Month
searls
210
40k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
152
13k
How to name files
jennybc
47
73k
Transcript
ශ⣹̍ḑ⁰⯅⭚ӧ㉊ RSChiang @ SITCON Summer Camp 2014 H O W
T O T R A I N Y O U R P Y T H O N
ߐ㡦ዅ RSChiang • 112 ୪㋁ • SITCON / COSCUP ⵈⶦ
• Python ჿࢼ • You can reach me at http://poren.tw
⁰ḑ༦⏯
民法 158 條 要約定有承諾期限者,⾮非於其期限 內為承諾,失其拘束⼒力。︒。 ⬉≜.send() try: ါⰊ = ⬉≜.wait()
except TimeoutException: ⬉≜ = null ቒ୕ ⁰
Python
Beautiful is better than ugly. Explicit is better than implicit.
Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts.
#include <iostream> using namespace std; ! int main(int argc, char*
argv) { cout << “Hi SITCON!”; return 0; } print(“Hi SITCON!”) C++ Python
None
string a = “ݙ”; string b = “”; for (int
i = 1; i <= 5; i++) { b += a; } cout << b; print(“ݙ” * 5) C++ Python
for (int i = 1; i <= 5; i++) {
cout << “#” << i << “\n”; } for i in range(5): print(“#” + str(i)) C++ Python
captains = [‘Takeshi’, ‘ୖ⭘’, ‘EAT’, ‘┧㕕’] for captain in captains:
print(‘Captain ’ + captain) print(len(captains))
speakers = [‘Allen’, ‘Bob’, ‘RS’, ‘⒀㐷’] for i, speaker in
enumerate(speakers): print(‘#{0} - {1}’.format(i, speaker)) print(len(captains))
Live Examples
reduce( lambda a, b: a or b, [ x %
i == 0 for i in range( 2, int(x ** 0.5 + 1) ) ] )
Thanks!