Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Pythonとはなんなのか?

PyCom mini Sapportの講演で使った資料です。

  • Login to see the comments

Pythonとはなんなのか?

  1. 1. New Coming Soon 2018/02/12 2018/06/21
  2. 2. 2006 2009 2012 2016 Now (2019) 2007
  3. 3. Python Web
  4. 4. Python
  5. 5. Python
  6. 6. 2000 2010 Now (2019) 1995 2001 2003
  7. 7. Web etc
  8. 8. ( ) ( )
  9. 9. ( ) ( )
  10. 10. Web SNS ( )
  11. 11. Web SNS ( )
  12. 12. ( ) ( )
  13. 13. def parse_header(line): plist = map(string.strip, string.splitfields(line, ';')) key = string.lower(plist[0]) del plist[0] pdict = {} for p in plist: i = string.find(p, '=') if i >= 0: name = string.lower(string.strip(p[:i])) value = string.strip(p[i+1:]) if len(value) >= 2 and value[0] == value[-1] == '"': value = value[1:-1] pdict[name] = value return key, pdict def parse_header(line): parts = _parseparam(';' + line) key = parts.__next__() pdict = {} for p in parts: i = p.find('=') if i >= 0: name = p[:i].strip().lower() value = p[i+1:].strip() if len(value) >= 2 and value[0] == value[-1] == '"': value = value[1:-1] value = value.replace('', '').replace('"', '"') pdict[name] = value return key, pdict
  14. 14. ( ) ( ) No.1
  15. 15. ( ) ( ) No.1
  16. 16. Python

×