Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. import sys
  2. print (sys.platform)
  3. print (2 ** 100)
  4. raw_input( )
  5.  
  6. # Fix Python 2.x.
  7. try: input = raw_input
  8. except NameError: pass
  9. print("Hi " + input("Say something: "))
  10.  
  11. Microsoft Windows [Version 6.1.7601]
  12. Copyright (c) 2009 Microsoft Corporation. All rights reserved.
  13.  
  14. C:UsersWeebleMy Python Program>_
  15.  
  16. python myscript.py
  17.  
  18. from six.moves import input
  19.  
  20. try:
  21. import __builtin__
  22. input = getattr(__builtin__, 'raw_input')
  23. except (ImportError, AttributeError):
  24. pass
  25.  
  26. # Thank you, python2-3 team, for making such a fantastic mess with
  27. # input/raw_input :-)
  28. real_raw_input = vars(__builtins__).get('raw_input',input)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement