Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Hello:
- def __init__(self):
- self.v = ""
- def my(self,v): # "my" in Perl would just be a local variable. (http://tinyurl.com/perl-my)
- self.v = v
- print(v)
- def main():
- Hello.my("\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64")
- if __name__=='__main__':
- main()
- # Input: Hello.my("Hello World")
- # Result: Hello World
Add Comment
Please, Sign In to add comment