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