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.

LLの虎 semifinal: 殺伐Python


Published on

Published in: Technology
  • Be the first to comment

LLの虎 semifinal: 殺伐Python

  1. 1. VS.
  2. 2. class Hello class Hello(object): def initialize(name) def __init__(self, name): @name = name = name end def greet def greet(self): print "Hello, " + print "Hello, " + "#{@name}n" end end Hello("mmm").greet()"mmm").greet
  3. 3. class Hello(object) def __init__(self, name) = name end def greet(self) print "Hello, " + end end Hello("mmm").greet()
  4. 4. class Hello: def initialize(name): @name = name def greet: print "Hello, #{@name}n""mmm").greet