Advertisement
widhisec

[Python] tull

Dec 27th, 2018
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.52 KB | None | 0 0
  1. # TUTORIAL PY
  2. # SENIN,22-10 2018
  3. G  = '\033[32m'
  4. M  = '\033[31m'
  5. P  = '\033[37m'
  6. import urllib2
  7. import os
  8. import sys
  9. def restart_progr():
  10.     python = sys.executable
  11.     os.execl(python, python, * sys.argv)
  12.     curdir= os.getcwd()
  13. os.system("clear")
  14. print M+'''
  15.   _                 ___
  16.  | |__   __ ___  __/ _ \ _ __
  17.  | '_ \ / _` \ \/ / | | | '__|
  18.  | | | | (_| |>  <| |_| | |
  19.  |_| |_|\__,_/_/\_\\___/|_|
  20.          Hax28dh8$ec
  21. '''
  22. print G+"BELAJAR PROGRAMMAN PYTHON PERTAMA"
  23. print "          Versi : 1.1"
  24. print P+"*********************************"
  25. print " 01.APA ITU PYTHON?"
  26. print " 02.CONTOH PROGRAM NYA"
  27. print " 03.APA KEGUNAAN PYTHON?"
  28. print " 04.Import ?"
  29. print " 05.Info"
  30. print " 00.EXIT "
  31. print "*********************************"
  32. hax =raw_input("Silahkan Di Pilih No nya >> ")
  33.  
  34. if hax =="01" or hax =="1":
  35.    widhi = urllib2.urlopen("https://pastebin.com/raw/bx1sBepe").read()
  36.    print widhi
  37.  
  38. if hax =="02":
  39.    serah = urllib2.urlopen("https://pastebin.com/raw/ZHjSG8Tj").read()
  40.    print serah
  41.  
  42. elif hax == '03':
  43.      print
  44.  
  45.  
  46. elif hax == '04':
  47.      print "Test"
  48.  
  49.  
  50. if hax == '05':
  51.        print " Halo Gan Salam Kenal Ya."
  52.        print " Saya Hax28dh8sec Ingin Sekali Membuat Tools Bermanfaat Bagi anda"
  53.        print " Namun Saya Masih Tahap Belajar Hehehe.."
  54.        print " GITHUB : https://github.com/Hax28dh8Sec"
  55.        print " WEBISTE : tutoriazsec.blogspot.com"
  56.        balik =input(" Tekan Enter Untuk Balik.:D")
  57.        restart_progr()
  58. if hax == '00':
  59.        print "byee"
  60.        exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement