NOL技術學習-PythonII

35fae48e7415421c9ec88e6bca66383e?s=47 MarsW
August 12, 2014

 NOL技術學習-PythonII

35fae48e7415421c9ec88e6bca66383e?s=128

MarsW

August 12, 2014
Tweet

Transcript

  1. NOL 技術學習-II Mars

  2. CH3-LIST,DICT,SET • list = [] ✴ sum • dict =

    {} ✴ add ✴ del ✴ key,value ✴ get
  3. CH3-LIST,DICT,SET • set() • set.add • in • &|^-

  4. CH4-FUNCTION & CLASS • lambda • function • class

  5. CH5-SORT • list.sort(key,reverse) • sorted(,key,reverse) • reverse=True,False • key=function ✴

    attrgetter
  6. CH6-I/O • I/O • write • # encoding: utf-8

  7. PRACTICE • Python Challenge again xD http://www.pythonchallenge.com/pc/def/ocr.html http://wordsmith.org/anagram/

  8. FUTURE • 網路爬蟲 • 正規式 • Unix語法