看板 [ Python ]
討論串[問題] word count in files
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者azulazure (獨在異鄉為異客)時間17年前 (2008/02/25 05:21), 編輯資訊
2
0
0
內容預覽:
I'm trying to write a command that print the largest file in the current. working directory. I'm able to print all the files and their wordcount,. but
(還有725個字)

推噓1(1推 0噓 3→)留言4則,0人參與, 最新作者cccx (ccc)時間17年前 (2008/02/25 06:37), 編輯資訊
0
0
0
內容預覽:
(deleted) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. 此行有誤. 可改成: if (x in range(wordcount - 1) == False:. 或是: if x not in range(wordcount - 1):. 何不直接印出max

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者Lucemia (生の直感、死の予感)時間17年前 (2008/02/25 10:18), 編輯資訊
0
0
0
內容預覽:
Two methods.. First, just save each file's filename and wordcount,. then use max or sort to find out the largest one.. It should looks like that ... c
(還有463個字)
首頁
上一頁
1
下一頁
尾頁