資源簡介
《Python編程實踐》PDF及代碼.zip
代碼片段和文件信息
def?find_two_smallest(L):
????“““?(list?of?float)?->?tuple?of?(int?int)
????Return?a?tuple?of?the?indices?of?the?two?smallest?values?in?list?L.
????>>>?find_two_smallest([809?834?477?478?307?122?96?102?324?476])
????(6?7)
????“““
????#?Find?the?index?of?the?minimum?item?in?L
????#?Remove?that?item?from?the?list
????#?Find?the?index?of?the?new?minimum?item?in?the?list
????#?Put?the?smallest?item?back?in?the?list
????#?If?necessary?adjust?the?second?index
????#?Return?the?two?indices
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-05?21:35??《Python編程實踐》PDF及代碼\
?????文件????64938148??2013-12-03?19:16??《Python編程實踐》PDF及代碼\Python編程實踐.pdf
?????目錄???????????0??2017-07-05?21:35??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\
?????目錄???????????0??2017-07-05?21:35??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\
?????目錄???????????0??2017-07-05?21:35??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\
?????文件?????????502??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\find_remove_find1.py
?????文件?????????391??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\find_remove_find2.py
?????文件?????????403??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\find_remove_find3.py
?????文件?????????451??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\find_remove_find4.py
?????文件?????????661??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\find_remove_find5.py
?????文件?????????243??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\find_remove_find_header.py
?????文件????????7476??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\pressure.txt
?????文件??????????82??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\search1.cmd
?????文件?????????142??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\search2.cmd
?????文件??????????95??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\search3.cmd
?????文件????????6076??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\sea_levels.txt
?????文件?????????379??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\sort_then_find1.py
?????文件?????????306??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\sort_then_find2.py
?????文件?????????556??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\sort_then_find3.py
?????文件?????????148??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\time_example.py
?????文件????????1145??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\time_find_remove_find.py
?????文件?????????452??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\walk_through1.py
?????文件?????????262??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\walk_through2.py
?????文件?????????298??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\walk_through3.py
?????文件?????????381??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\walk_through4.py
?????文件?????????421??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\walk_through5.py
?????文件?????????618??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\walk_through6.py
?????文件?????????816??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\alg\walk_through7.py
?????目錄???????????0??2017-07-05?21:35??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\basic\
?????文件??????????14??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\basic\addition.cmd
?????文件??????????27??2013-09-17?18:30??《Python編程實踐》PDF及代碼\Python編程實踐gwpy2-code\code\basic\addmul.cmd
............此處省略752個文件信息
評論
共有 條評論