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との関わりかた

638 views

Published on

Python入門 #5で話したスライドです

Published in: Technology
  • Be the first to comment

私のPythonとの関わりかた

  1. 1. Python Python #5
  2. 2. ? • (@jbking) • ( ) (Yarch) • • • •
  3. 3. PyCon JP 2017
  4. 4. ? (Python )
  5. 5. !!! !!!
  6. 6. • • • ( ) • ( )
  7. 7. • ( ) • • •
  8. 8. # incr.py n = 0 print('n = %d' % n) # with open('incr.py') as f: lines = f.read().split('n') for idx, l in enumerate(lines): if l.startswith('n = '): next_n = int(l.replace('n = ', '')) + 1 lines[idx] = 'n = %d' % next_n with open('incr.py', 'w') as f: f.write('n'.join(lines))
  9. 9. $ python3 incr.py n = 0 $ python3 incr.py n = 1 $ python3 incr.py n = 2 $ python3 incr.py n = 3 $ python3 incr.py n = 4
  10. 10. …?
  11. 11. • ( ) • • • •
  12. 12. • ( ) • ( ) • ( ) • • •
  13. 13. Python ? ( Python )
  14. 14. • • Python Python • Python Python
  15. 15. • Twisted • Deferred • • Tornado • • Django • MVC, MTV • Pandas •
  16. 16. Python ?
  17. 17. • Python ? • Python ( ) • • • •
  18. 18. • Django • ( ) Web • 10 • Django REST Framework • Jupyter Notebook •
  19. 19. • • • • • Python
  20. 20. • • • • Python

×