Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NOL技術學習-PythonII

MarsW
August 12, 2014

 NOL技術學習-PythonII

MarsW

August 12, 2014
Tweet

More Decks by MarsW

Other Decks in Technology

Transcript

  1. NOL 技術學習-II
    Mars

    View full-size slide

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

    ✴ sum

    • dict = {}

    ✴ add

    ✴ del

    ✴ key,value

    ✴ get

    View full-size slide

  3. CH3-LIST,DICT,SET
    • set()

    • set.add

    • in

    • &|^-

    View full-size slide

  4. CH4-FUNCTION & CLASS
    • lambda

    • function

    • class

    View full-size slide

  5. CH5-SORT
    • list.sort(key,reverse)

    • sorted(,key,reverse)

    • reverse=True,False

    • key=function

    ✴ attrgetter

    View full-size slide

  6. CH6-I/O
    • I/O

    • write

    • # encoding: utf-8

    View full-size slide

  7. PRACTICE
    • Python Challenge again xD

    http://www.pythonchallenge.com/pc/def/ocr.html

    http://wordsmith.org/anagram/

    View full-size slide

  8. FUTURE
    • 網路爬蟲

    • 正規式

    • Unix語法

    View full-size slide