Brak opisu

pvl.py 703B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import sys
  2. import os
  3. import random as rdm
  4. import sqlite3
  5. #Begruessung
  6. print ("-")*50
  7. print ("Luftlinienberechner")
  8. print ("Erstellt von Niko Hessler und Martin Mittrenga")
  9. print ("-")*50
  10. #Datei einlesen mit print als Test
  11. os.system("clear")
  12. f = open("/data/share/nhessler/DE.tab", "r")
  13. for line in f:
  14. print[1:3]#line.rstrip()
  15. f.close()
  16. #Zuordnung zu einem Tupel
  17. #tuple = ('loc_id','ags','ascii','name','lat','lon','amt','plz','vorwahl','einwohner','flaeche','kz','typ','level','of','invalid')
  18. #tuple[0]
  19. #Startpunkt Auswahl
  20. startpunkt=(raw_input("Geben sie Ihren Startpunkt an: "))
  21. #Berechnung
  22. #Endpunkt Auswahl
  23. endpunkt=(raw_input("Geben sie Ihren Enpunkt an: "))