pycharm bemängelt nur noch rechtschreibung
This commit is contained in:
6
.idea/encodings.xml
generated
Normal file
6
.idea/encodings.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding">
|
||||||
|
<file url="file://$PROJECT_DIR$/Versionsgeschichte.txt" charset="windows-1252" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -166,6 +166,7 @@ def dec_to_deg(lat_dec, lon_dec):
|
|||||||
|
|
||||||
# ***ReverseWherIGo zu Dezimalgrad
|
# ***ReverseWherIGo zu Dezimalgrad
|
||||||
def rwig_to_coords(a, b, c):
|
def rwig_to_coords(a, b, c):
|
||||||
|
lat, lon = 0, 0
|
||||||
a = int(a)
|
a = int(a)
|
||||||
b = int(b)
|
b = int(b)
|
||||||
c = int(c)
|
c = int(c)
|
||||||
@@ -465,15 +466,13 @@ wiedergegeben.""" + "\n\n")
|
|||||||
if i.upper() not in abcgross:
|
if i.upper() not in abcgross:
|
||||||
atxt = atxt + i # nicht codierbare Zeichen direkt zur Ausgabe bitte!
|
atxt = atxt + i # nicht codierbare Zeichen direkt zur Ausgabe bitte!
|
||||||
continue
|
continue
|
||||||
if i == i.upper():
|
abc = abcgross
|
||||||
abc = abcgross
|
|
||||||
if i == i.lower():
|
if i == i.lower():
|
||||||
abc = abcklein
|
abc = abcklein
|
||||||
abcl = len(abc)
|
for j in range(26):
|
||||||
for j in range(abcl):
|
|
||||||
if i == abc[j]:
|
if i == abc[j]:
|
||||||
if j + r >= abcl:
|
if j + r >= 26:
|
||||||
atxt = atxt + abc[j + r - abcl]
|
atxt = atxt + abc[j + r - 26]
|
||||||
else:
|
else:
|
||||||
atxt = atxt + abc[j + r]
|
atxt = atxt + abc[j + r]
|
||||||
Ausgabe.insert(1.0, " " + atxt + "\n")
|
Ausgabe.insert(1.0, " " + atxt + "\n")
|
||||||
@@ -1630,10 +1629,10 @@ Primzahl ist.
|
|||||||
n = n // i
|
n = n // i
|
||||||
if i > n:
|
if i > n:
|
||||||
break
|
break
|
||||||
|
out = "Die Zahl {} hat folgende Primfaktoren:\n".format(eingabetext)
|
||||||
if not faktoren:
|
if not faktoren:
|
||||||
Ausgabe.insert(1.0, "Die Zahl {} ist eine Primzahl!!\n".format(eingabetext))
|
Ausgabe.insert(1.0, "Die Zahl {} ist eine Primzahl!!\n".format(eingabetext))
|
||||||
else:
|
else:
|
||||||
out = "Die Zahl {} hat folgende Primfaktoren:\n".format(eingabetext)
|
|
||||||
for z in faktoren:
|
for z in faktoren:
|
||||||
out += str(z) + ", "
|
out += str(z) + ", "
|
||||||
return Ausgabe.insert(1.0, out[:-2] + "\n")
|
return Ausgabe.insert(1.0, out[:-2] + "\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user