by Python
            Yoshiori SHOJI




2009   12   14
by Python
            Yoshiori SHOJI




2009   12   14
Python




2009   12   14
2009   12   14
2009   12   14
2009   12   14
2009   12   14
J a v a
2009   12   14
J a v a
2009   12   14
a s a k u s a .




2009   12   14
a s a k u s a .




2009   12   14
2009   12   14
!!
2009   12   14
def hoge():
                     print 'foo'
                     print 'bar'




2009   12   14
def hoge():
                        print 'foo'
                        print 'bar'


             def hoge(): print 'foo'...
def hoge():
                        print 'foo'
                        print 'bar'




2009   12   14            X
      ...
2009   12   14
2009   12   14
2009   12   14
2009   12   14
2009   12   14
2009   12   14
2009   12   14
2009   12   14
2009   12   14
2009   12   14
irb(main):014:0> p 1 && 2
                 2
                 => nil
                 irb(main):015:0> p 1 || 2
          ...
irb(main):014:0> p 1 && 2
                 2
                 => nil
                 irb(main):015:0> p 1 || 2
          ...
2009   12   14
2009   12   14
foo() and bar()




2009   12   14
foo() and bar()




2009   12   14
foo() and bar()




2009   12   14
foo() and bar()




                 [ foo() ] and bar()


2009   12   14
foo() and bar()




                 [ foo() ] and bar()


2009   12   14
2009   12   14
[ foo() ] and bar()




2009   12   14
[ foo() ] and bar()




2009   12   14
[ foo() ] and bar()


                 [foo(), bar(), hoge(),]



2009   12   14
if A :
                     foo()
                     bar()




2009   12   14
if A :
                     foo()
                     bar()
   [ foo() ] and [ bar() ] if A else True


2009   12   14
if A :
                     foo()
                     bar()
   [ foo() ] and [ bar() ] if A else True


2009   12   14
2009   12   14
[[ foo() ] and [ bar() ] if A else True ]




2009   12   14
[[ foo() ] and [ bar() ] if A else True ]




2009   12   14
[[ foo() ] and [ bar() ] if A else True ]




                 [A and [ foo() ] and [ bar() ]]
2009   12   14
2009   12   14
2009   12   14
for x in range(10) :
                    foo( x )



2009   12   14
for x in range(10) :
                    foo( x )

                 [ foo( x ) for x in range(10) ]
2009   12   14
2009   12   14
def hoge( data ):
         return [foo()] and bar( data )




2009   12   14
def hoge( data ):
         return [foo()] and bar( data )




2009   12   14
def hoge( data ):
         return [foo()] and bar( data )



   hoge = lambda data :([foo()] and bar
   ( data ) )
2009   ...
2009   12   14
import sys;[sys.stdout.write(data)]




       globals().__setitem__("setitem",
       globals().__setitem__)
2009   12   ...
2009   12   14
2009   12   14
import sys,os,urllib,time;[[[globals
().__setitem__('url','http://www.bijint.com/
jp/img/photo/%02d%02d.jpg' % (i, j))] an...
import sys;[globals().__setitem__("setitem", globals().__setitem__)]
and [setitem('isSun',lambda : sys.platform.find('java...
2009   12   14
!!
2009   12   14
!!
2009   12   14
2009   12   14
Upcoming SlideShare
Loading in …5
×

(裏)世界一言語トークス by Python

1,794 views

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,794
On SlideShare
0
From Embeds
0
Number of Embeds
181
Actions
Shares
0
Downloads
22
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

(裏)世界一言語トークス by Python

  1. 1. by Python Yoshiori SHOJI 2009 12 14
  2. 2. by Python Yoshiori SHOJI 2009 12 14
  3. 3. Python 2009 12 14
  4. 4. 2009 12 14
  5. 5. 2009 12 14
  6. 6. 2009 12 14
  7. 7. 2009 12 14
  8. 8. J a v a 2009 12 14
  9. 9. J a v a 2009 12 14
  10. 10. a s a k u s a . 2009 12 14
  11. 11. a s a k u s a . 2009 12 14
  12. 12. 2009 12 14
  13. 13. !! 2009 12 14
  14. 14. def hoge(): print 'foo' print 'bar' 2009 12 14
  15. 15. def hoge(): print 'foo' print 'bar' def hoge(): print 'foo' print 'bar' 2009 12 14
  16. 16. def hoge(): print 'foo' print 'bar' 2009 12 14 X def hoge(): print 'foo' print 'bar'
  17. 17. 2009 12 14
  18. 18. 2009 12 14
  19. 19. 2009 12 14
  20. 20. 2009 12 14
  21. 21. 2009 12 14
  22. 22. 2009 12 14
  23. 23. 2009 12 14
  24. 24. 2009 12 14
  25. 25. 2009 12 14
  26. 26. 2009 12 14
  27. 27. irb(main):014:0> p 1 && 2 2 => nil irb(main):015:0> p 1 || 2 1 => nil >>> print 1 and 2 2 >>> print 1 or 2 1 2009 12 14
  28. 28. irb(main):014:0> p 1 && 2 2 => nil irb(main):015:0> p 1 || 2 1 => nil >>> print 1 and 2 2 >>> print 1 or 2 1 2009 12 14
  29. 29. 2009 12 14
  30. 30. 2009 12 14
  31. 31. foo() and bar() 2009 12 14
  32. 32. foo() and bar() 2009 12 14
  33. 33. foo() and bar() 2009 12 14
  34. 34. foo() and bar() [ foo() ] and bar() 2009 12 14
  35. 35. foo() and bar() [ foo() ] and bar() 2009 12 14
  36. 36. 2009 12 14
  37. 37. [ foo() ] and bar() 2009 12 14
  38. 38. [ foo() ] and bar() 2009 12 14
  39. 39. [ foo() ] and bar() [foo(), bar(), hoge(),] 2009 12 14
  40. 40. if A : foo() bar() 2009 12 14
  41. 41. if A : foo() bar() [ foo() ] and [ bar() ] if A else True 2009 12 14
  42. 42. if A : foo() bar() [ foo() ] and [ bar() ] if A else True 2009 12 14
  43. 43. 2009 12 14
  44. 44. [[ foo() ] and [ bar() ] if A else True ] 2009 12 14
  45. 45. [[ foo() ] and [ bar() ] if A else True ] 2009 12 14
  46. 46. [[ foo() ] and [ bar() ] if A else True ] [A and [ foo() ] and [ bar() ]] 2009 12 14
  47. 47. 2009 12 14
  48. 48. 2009 12 14
  49. 49. for x in range(10) : foo( x ) 2009 12 14
  50. 50. for x in range(10) : foo( x ) [ foo( x ) for x in range(10) ] 2009 12 14
  51. 51. 2009 12 14
  52. 52. def hoge( data ): return [foo()] and bar( data ) 2009 12 14
  53. 53. def hoge( data ): return [foo()] and bar( data ) 2009 12 14
  54. 54. def hoge( data ): return [foo()] and bar( data ) hoge = lambda data :([foo()] and bar ( data ) ) 2009 12 14
  55. 55. 2009 12 14
  56. 56. import sys;[sys.stdout.write(data)] globals().__setitem__("setitem", globals().__setitem__) 2009 12 14
  57. 57. 2009 12 14
  58. 58. 2009 12 14
  59. 59. import sys,os,urllib,time;[[[globals ().__setitem__('url','http://www.bijint.com/ jp/img/photo/%02d%02d.jpg' % (i, j))] and [globals().__setitem__('file',open (os.path.basename(url), 'wb'))] and [file.write(urllib.urlopen(url).read())] and [file.close()] and [time.sleep(5)] for j in range(60)] for i in range(24)] 2009 12 14
  60. 60. import sys;[globals().__setitem__("setitem", globals().__setitem__)] and [setitem('isSun',lambda : sys.platform.find('java') > -1)] and [setitem('p',lambda data :(isSun() and ([globals().__setitem__ ('java',__import__('java'))] and [java.lang.System.out.write (java.lang.String(data).getBytes("utf-8"))] and [sys.stdout.write ('n')]) or [sys.stdout.write(data + 'n')]))] and [setitem ('fizbuz',lambda i :([setitem('fiz','Fiz')] and [setitem('buz','Buz')] and [setitem('ret','')] and [isSun() and ([setitem('fiz',' ')] and [setitem('buz',' ')])] and [i % 3 == 0 and setitem('ret', globals().get('ret') + fiz)] and [i % 5 == 0 and setitem('ret', globals().get('ret') + buz)] and [len(globals().get('ret')) == 0 and setitem('ret', str(i))] and ret))] and [p(fizbuz(i)) for i in xrange (20)] 2009 12 14
  61. 61. 2009 12 14
  62. 62. !! 2009 12 14
  63. 63. !! 2009 12 14
  64. 64. 2009 12 14

×