Python 經常使用庫

  1. 基本的數據處理

      0.list   鏈式表達sql

      1. dict 
      2. tuple
      3. set   求和差並補集
      4. str     in,not in , startswith , endswith, find , findall

        regex=re.compile(pattern)   , regex.findall(s)

    1. datetime, time, dateutil
      1.   datetime.date.today().strftime('%Y%m%d')
    2.  math    sqrt, exp,
  1. 系統命令
    1. os
      1. listdir ,curdir
      2. walk   
  2. 數據庫處理 
    1. MySQLdb
      1. MySQLdb.connect(host=, user=, passwd=, db=,port=,charset=)
      2. cur.execute()  ,   cur.executemany()
      3. conn.commit()
    2. sqlalchemy
      1. create_engine
  3. 文件讀寫
    1.  xlrd , xlwt ,   支持xls
    2.  openpyxl  支持 xlsx
    3.   json  
    4. readlines  
  4. 調接口
    1. urllib, urllib2, 
      1.   header
      2.   urllib.urlencode( )
    2. request
      1. get / post 
  5. 郵件、提醒等  
    1. email
    2. smtplib
    3. tkMessageBox 彈窗提醒
  6. 爬蟲 scrapy
  7. pandas
  8. 可視化
    1. matplotlib
    2. pyecharts
  9. Web
    1. tornado
    2. flask      
  10. 科學計算
    1.  numpy
    2.  scipy   
  11. sciki-learn
相關文章
相關標籤/搜索