Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.31 KB | None | 0 0
  1. from os import system
  2.  
  3.  
  4. # meine Funktionen
  5. def clear_screen():
  6.     system("cls")
  7.  
  8. def lines():
  9.     print (104 * "-")
  10.  
  11. def help():
  12.     clear_screen()
  13.  
  14.     print("\nDas Programm befindet sich noch in der Testphase!!")
  15.     print("\n\n(Anstatt Komma bitte einen Punkt eingeben!!!)")
  16.     print("(Bei falscher Eingabe stürzt das Programm momentan noch ab)")
  17.  
  18.  
  19.  
  20. # Hauptprogramm
  21. clear_screen()
  22.  
  23.  
  24. # Hauptmenü
  25. lines()
  26. print ("\n\t\t\tProgramm zum Erstellen von Koordinaten für Ebert Abrichter")
  27. lines()
  28. print ("\n\n\n (1)   Flachkopf mit Schräge")
  29. print (" (2)   Flachkopf mit Kontur")
  30. print (" (3)   Senkkopf mit Schräge")
  31. print (" (4)   Senkkopf mit Kontur")
  32. print (" (5)   Hilfe")
  33. print (" (6)   Beenden ")
  34.  
  35. choose = input("\n\n\n Welche Option wählen Sie? > ")
  36.  
  37.  
  38. # Auswahl Otionen
  39. if choose == "1":
  40.     help()
  41.  
  42.     SchaftDurchmesser = float(input("\n\nSchaftDurchmesser > "))
  43.     TD                = float(input("TD                > "))
  44.     Schaftlänge       = float(input("Schaftlänge       > "))
  45.     Radius            = float(input("Radius            > "))
  46.     Schräge           = float(input("Schräge           > "))
  47.  
  48.  
  49.     print ("\n\nEngegebene Daten : ")
  50.  
  51.  
  52.  
  53.  
  54. elif choose == "5":
  55.     clear_screen()
  56.     print ("\n\n\t\t\tProgramm erstellt von Phillip Francis\n\n\n\n")
  57.  
  58. elif choose == "6":
  59.     print ("\n\n\nProgrammende\n\n\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement