skip to main
|
skip to sidebar
御前帶鍵盤的Python部落格
2010年4月29日 星期四
Python標準輸入的使用方法
import
sys data
=
sys
.
stdin
.
readlines
()
print
"Counted"
,
len
(
data
),
"lines."
要匯入sys物件,可以開始使用
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
網誌存檔
►
2011
(5)
►
6月
(2)
►
4月
(1)
►
1月
(2)
▼
2010
(3)
►
7月
(2)
▼
4月
(1)
Python標準輸入的使用方法
►
2009
(1)
►
5月
(1)
►
2008
(5)
►
6月
(2)
►
5月
(3)
關於我自己
omusico
檢視我的完整簡介