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
|
||||
def rwig_to_coords(a, b, c):
|
||||
lat, lon = 0, 0
|
||||
a = int(a)
|
||||
b = int(b)
|
||||
c = int(c)
|
||||
@@ -465,15 +466,13 @@ wiedergegeben.""" + "\n\n")
|
||||
if i.upper() not in abcgross:
|
||||
atxt = atxt + i # nicht codierbare Zeichen direkt zur Ausgabe bitte!
|
||||
continue
|
||||
if i == i.upper():
|
||||
abc = abcgross
|
||||
abc = abcgross
|
||||
if i == i.lower():
|
||||
abc = abcklein
|
||||
abcl = len(abc)
|
||||
for j in range(abcl):
|
||||
for j in range(26):
|
||||
if i == abc[j]:
|
||||
if j + r >= abcl:
|
||||
atxt = atxt + abc[j + r - abcl]
|
||||
if j + r >= 26:
|
||||
atxt = atxt + abc[j + r - 26]
|
||||
else:
|
||||
atxt = atxt + abc[j + r]
|
||||
Ausgabe.insert(1.0, " " + atxt + "\n")
|
||||
@@ -1630,10 +1629,10 @@ Primzahl ist.
|
||||
n = n // i
|
||||
if i > n:
|
||||
break
|
||||
out = "Die Zahl {} hat folgende Primfaktoren:\n".format(eingabetext)
|
||||
if not faktoren:
|
||||
Ausgabe.insert(1.0, "Die Zahl {} ist eine Primzahl!!\n".format(eingabetext))
|
||||
else:
|
||||
out = "Die Zahl {} hat folgende Primfaktoren:\n".format(eingabetext)
|
||||
for z in faktoren:
|
||||
out += str(z) + ", "
|
||||
return Ausgabe.insert(1.0, out[:-2] + "\n")
|
||||
|
||||
Reference in New Issue
Block a user