Tempo: Auswertung MOTOR_TEMPO_LOS (Gegnerantwort je geloster Eimer, Strasse, Groesse, geclustert) und Richterlauf MOTOR_TEMPO_TELL mit Live-Schaltern wie schatten.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
# Tempo-Los (MOTOR_TEMPO_LOS, Karte messung/beute/tempo_los/KARTE.md): Antwort der Gegner nach dem gelosten Eimer unseres Zugs.
|
||||
# python -X utf8 messung/beute/tempo_los/auswertung.py [--ab "2026-11-29 16:46"] [--aus bericht.json] <schattenlog.jsonl ...>
|
||||
# Quelle: Schattenlog des Laeufers (betrieb/scratch/shadow*.jsonl, archiv/lauf/schatten.jsonl): je eigenem Zug Anfrage, Antwort,
|
||||
# gedenkzeit_s. Eimer = antwort.tempo_los; fehlt es (Zuege vor 86ca5c65), dann ab --ab aus der geplanten Zeit (schnell <= 1,8 s,
|
||||
# normal >= 2,1 s; dazwischen unklar, raus). Ausgewertet wird nach dem gelosten Eimer (Zuteilung), nicht nach der Ist-Zeit.
|
||||
# Antwort der Gegner: aus der naechsten eigenen Anfrage derselben Hand (Verlauf nach unserem Zug auf dieser Strasse).
|
||||
# Nach Bet/Raise: raise (jemand erhoeht) > call (jemand geht mit) > fold (alle weg). Ohne naechste Anfrage entscheidet die Hand in
|
||||
# archiv/lauf/haende.jsonl (--haende): Showdown = call, sonst fold; Hand dort nicht gefunden = raus.
|
||||
# Nach Check: bet (jemand setzt) sonst check (keine Anfrage mehr auf dieser Strasse).
|
||||
# Zellen: Strasse x unser Zug x Groesse (Einsatz/Topf: klein < 0,45, mittel bis 0,85, gross darueber). Intervall: 95 % Normal fuer
|
||||
# die Differenz zweier Anteile (schnell minus normal), geclustert je Tisch-Sitzung (Raum und Tag; Sandwich ueber die Cluster, wie im
|
||||
# Tor der Karte). Tor (Karte): Zeile "alle bet+raise", Untergrenze > 0 -> schnell als Standard; Obergrenze < 0 -> Schalter aus.
|
||||
import sys; sys.dont_write_bytecode = True
|
||||
import collections, json, math, os
|
||||
|
||||
ARGS = sys.argv[1:]
|
||||
AB = ARGS[ARGS.index("--ab") + 1] if "--ab" in ARGS else None
|
||||
AUS = ARGS[ARGS.index("--aus") + 1] if "--aus" in ARGS else None
|
||||
HAENDE = ARGS[ARGS.index("--haende") + 1] if "--haende" in ARGS else os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)), "..", "..", "..", "archiv", "lauf", "haende.jsonl")
|
||||
PFADE = [a for i, a in enumerate(ARGS) if not a.startswith("--") and (i == 0 or ARGS[i - 1] not in ("--ab", "--aus", "--haende"))]
|
||||
SHOWDOWN = {}
|
||||
NACH = {"FLOP": 1, "TURN": 2, "RIVER": 3}
|
||||
|
||||
|
||||
def eintraege():
|
||||
for p in PFADE:
|
||||
with open(p, encoding="utf-8", errors="replace") as f:
|
||||
for z in f:
|
||||
try: e = json.loads(z)
|
||||
except ValueError: continue
|
||||
if isinstance(e.get("anfrage"), dict) and isinstance(e.get("antwort"), dict) and e.get("kurz"):
|
||||
yield e
|
||||
|
||||
|
||||
def eimer(e):
|
||||
los = e["antwort"].get("tempo_los")
|
||||
if los: return los
|
||||
if AB is None or str(e.get("zeit")) < AB: return None
|
||||
g = e.get("gedenkzeit_s")
|
||||
if not isinstance(g, (int, float)): return None
|
||||
return "schnell" if g <= 1.85 else ("normal" if g >= 2.05 else None)
|
||||
|
||||
|
||||
def unser_zug(q, a):
|
||||
akt = a.get("action"); zu = float(q.get("toCall") or 0)
|
||||
if akt in ("BET", "RAISE", "ALL_IN", "ALLIN"):
|
||||
return "bet" if zu == 0 else "raise"
|
||||
return {"CHECK": "check", "CALL": "call"}.get(akt)
|
||||
|
||||
|
||||
def groesse(q, a):
|
||||
s, pot = a.get("size"), float(q.get("pot") or 0)
|
||||
if not isinstance(s, (int, float)) or pot <= 0: return "-"
|
||||
x = (s - float(q.get("toCall") or 0)) / pot
|
||||
return "klein" if x < 0.45 else ("mittel" if x <= 0.85 else "gross")
|
||||
|
||||
|
||||
def antwort(e, n):
|
||||
q, a = e["anfrage"], e["antwort"]; z = unser_zug(q, a); st = q["street"]; ich = q.get("heroSeat")
|
||||
if n is None:
|
||||
sd = SHOWDOWN.get(e["kurz"].split(" ")[0])
|
||||
if z in ("bet", "raise"):
|
||||
return None if sd is None else ("call" if sd else "fold")
|
||||
return "check" if z == "check" else None
|
||||
h = (n["anfrage"].get("history") or [])[len(q.get("history") or []):]
|
||||
if h and h[0].get("seat") == ich: h = h[1:] # unser Zug selbst
|
||||
danach = [x for x in h if x.get("street") == st and x.get("seat") != ich]
|
||||
akte = {x.get("action") for x in danach}
|
||||
if z in ("bet", "raise"):
|
||||
if akte & {"RAISE", "BET", "ALL_IN"}: return "raise"
|
||||
if "CALL" in akte: return "call"
|
||||
return "fold" if danach else ("call" if NACH.get(n["anfrage"].get("street"), 0) > NACH.get(st, 0) else None)
|
||||
if z == "check":
|
||||
return "bet" if akte & {"RAISE", "BET", "ALL_IN"} else "check"
|
||||
return None
|
||||
|
||||
|
||||
def main():
|
||||
je = collections.defaultdict(list)
|
||||
for e in eintraege():
|
||||
je[e["kurz"].split(" ")[0]].append(e)
|
||||
if os.path.exists(HAENDE):
|
||||
with open(HAENDE, encoding="utf-8", errors="replace") as f:
|
||||
for z in f:
|
||||
if '"hand"' not in z: continue
|
||||
try: h = json.loads(z)
|
||||
except ValueError: continue
|
||||
if str(h.get("hand")) in je: SHOWDOWN[str(h["hand"])] = bool(h.get("showdown"))
|
||||
Z = collections.defaultdict(lambda: {"schnell": collections.Counter(), "normal": collections.Counter(),
|
||||
"cl": collections.defaultdict(lambda: [0, 0, 0, 0])}) # je Cluster: n1, y1, n0, y0
|
||||
n_zuege = collections.Counter()
|
||||
for hand, es in je.items():
|
||||
es = [e for e in es if e.get("geklickt")] or es
|
||||
for i, e in enumerate(es):
|
||||
q, a = e["anfrage"], e["antwort"]
|
||||
if q.get("street") not in NACH: continue
|
||||
b = eimer(e); z = unser_zug(q, a)
|
||||
if not b or not z: continue
|
||||
n_zuege[b] += 1
|
||||
r = antwort(e, es[i + 1] if i + 1 < len(es) else None)
|
||||
if r is None: continue
|
||||
gegner = sum(not v.get("folded") for v in q.get("villains") or [])
|
||||
cl = (e.get("raum"), str(e.get("zeit"))[:10]); j = 0 if b == "schnell" else 2
|
||||
zellen = [(q["street"], z, groesse(q, a)), ("alle", z, "-"), ("alle", z, "zu zweit" if gegner == 1 else "mehrweg")]
|
||||
if z in ("bet", "raise"): zellen.append(("alle", "bet+raise", "-"))
|
||||
for zelle in zellen:
|
||||
Z[zelle][b][r] += 1
|
||||
ziel = "fold" if z in ("bet", "raise") else "bet"
|
||||
Z[zelle]["cl"][cl][j] += 1; Z[zelle]["cl"][cl][j + 1] += (r == ziel)
|
||||
out = {"quelle": PFADE, "haende": HAENDE, "haende_gefunden": len(SHOWDOWN), "ab": AB, "zuege_je_eimer": dict(n_zuege), "zellen": []}
|
||||
for (st, z, g), c in sorted(Z.items()):
|
||||
ziel = "fold" if z in ("bet", "raise", "bet+raise") else ("bet" if z == "check" else None)
|
||||
zeile = {"strasse": st, "zug": z, "groesse": g}
|
||||
for b in ("schnell", "normal"):
|
||||
zeile[b] = dict(c[b]); zeile["n_" + b] = sum(c[b].values())
|
||||
if ziel and zeile["n_schnell"] and zeile["n_normal"]:
|
||||
p1 = c["schnell"][ziel] / zeile["n_schnell"]; p0 = c["normal"][ziel] / zeile["n_normal"]
|
||||
N1, N0 = zeile["n_schnell"], zeile["n_normal"]; K = len(c["cl"])
|
||||
se = math.sqrt(sum(((y1 - p1 * n1) / N1 - (y0 - p0 * n0) / N0) ** 2 for n1, y1, n0, y0 in c["cl"].values()) * K / max(K - 1, 1))
|
||||
zeile["cluster"] = K
|
||||
zeile["mass"] = ziel; zeile["schnell_pct"] = round(100 * p1, 1); zeile["normal_pct"] = round(100 * p0, 1)
|
||||
zeile["diff_pp"] = [round(100 * (p1 - p0), 1), round(100 * (p1 - p0 - 1.96 * se), 1), round(100 * (p1 - p0 + 1.96 * se), 1)]
|
||||
out["zellen"].append(zeile)
|
||||
for x in out["zellen"]:
|
||||
if "diff_pp" in x:
|
||||
print("%-6s %-6s %-9s %s nach schnell %5.1f %% (n %4d), nach normal %5.1f %% (n %4d), Diff %+.1f pp [%+.1f; %+.1f], %d Sitzungen" % (
|
||||
x["strasse"], x["zug"], x["groesse"], x["mass"], x["schnell_pct"], x["n_schnell"], x["normal_pct"], x["n_normal"], *x["diff_pp"], x["cluster"]))
|
||||
print("Zuege je Eimer", dict(n_zuege))
|
||||
t = next((x for x in out["zellen"] if x["strasse"] == "alle" and x["zug"] == "bet+raise" and "diff_pp" in x), None)
|
||||
out["tor"] = None if t is None else ("schnell Standard" if t["diff_pp"][1] > 0 else ("Schalter aus" if t["diff_pp"][2] < 0 else "weiter"))
|
||||
print("Tor (alle bet+raise):", out["tor"])
|
||||
if AUS:
|
||||
with open(AUS + ".neu", "w", encoding="utf-8") as f: json.dump(out, f, ensure_ascii=False, indent=1)
|
||||
os.replace(AUS + ".neu", AUS)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,175 @@
|
||||
# tempo_richter (KARTE.md im Register): MOTOR_TEMPO_TELL=1 gegen heute (Live-Schalter aus kern_schalter.txt) an allen eigenen
|
||||
# River-Anfragen der Schattenlogs ab 25.11. (Cache von breit_richter), River-Kipps im hhDealer-Richter bepreist (wie rnr/richter/lauf.py).
|
||||
# Die Schattenlog-Anfragen tragen keine Bedenkzeit: `karte` liest dieselben Haende aus archiv/rohlog mit lesen/spot_from_log.py
|
||||
# (MOTOR_TEMPO_TELL=1) und uebernimmt tempoLR je Gegner (gleiche Hand, River, gleicher Verlauf). Nur Anfragen mit Faktor werden
|
||||
# gerechnet; alle anderen sind in beiden Armen gleich (Kipp 0, zaehlen im Nenner mit).
|
||||
# python -X utf8 lauf.py karte -> D:/Projects/pokerfreak-daten/tempo_richter/tempo.pkl
|
||||
# python -X utf8 lauf.py lauf heute|tempo|heute2 -> antworten_<arm>.jsonl (anhaengend, setzt fort; ein Motor je Arm)
|
||||
# python -X utf8 lauf.py auswerten -> richter.json
|
||||
import sys; sys.dont_write_bytecode = True
|
||||
import collections, glob, gzip, json, os, pickle
|
||||
import numpy as np
|
||||
HIER = os.path.dirname(os.path.abspath(__file__)); W = os.path.normpath(os.path.join(HIER, "..", "..", ".."))
|
||||
PM = "D:/Projects/pokerfreak/.claude/worktrees/motor-poolmodell-57fd0b/messung/motor"
|
||||
sys.path[:0] = [PM, os.path.join(PM, "riverbr"), os.path.join(W, "entscheiden"), os.path.join(W, "lesen")]
|
||||
import sicher as SI
|
||||
import richter as RI
|
||||
import rueck as RR
|
||||
RB = RI.RB
|
||||
EXE = os.path.join(W, "entscheiden", "motor", "target", "release", "pokerbench-tempo-richter.exe")
|
||||
CACHE = "D:/Projects/pokerfreak-daten/breit_richter/anfragen.pkl"
|
||||
TEMPO = "D:/Projects/pokerfreak-daten/tempo_richter/tempo.pkl"
|
||||
ARME = {"heute": {"RAYON_NUM_THREADS": "2"}, "heute2": {"RAYON_NUM_THREADS": "2"}, "tempo": {"RAYON_NUM_THREADS": "2", "MOTOR_TEMPO_TELL": "1"}}
|
||||
|
||||
|
||||
LIVE = "D:/Projects/pokerfreak/.claude/worktrees/engine-lecks-angreifen-de7b88"
|
||||
|
||||
|
||||
def starte(extra):
|
||||
"""Motor wie entscheiden/schatten.py im Laeufer: Umgebung = os.environ nach dem Import von decide aus dem Live-Baum (liest dessen
|
||||
betrieb/kern_schalter.txt, gibt die LAEUFER_SCHALTER in os.environ), Tafeln wie schatten.laden (MOTOR_BRETTQ: sechs100-q, 200q400).
|
||||
Nicht rueck.starte: das gab nicht alle Live-Schalter weiter (poolmodell-Befund 29.11.)."""
|
||||
import queue, subprocess, threading
|
||||
sys.path.insert(0, os.path.join(LIVE, "entscheiden")); import decide # noqa: F401 (Nebenwirkung: Live-Schalter in os.environ)
|
||||
sys.path.remove(os.path.join(LIVE, "entscheiden"))
|
||||
d = os.path.join("D:/Projects/pokerfreak", "daten", "grundstrategie", "motor")
|
||||
q = os.environ.get("MOTOR_BRETTQ") == "1"; km = "200q400" if q else "200"
|
||||
g = [os.path.join(d, x) for x in ("sechs100-q.bin" if q else "sechs100-v2.bin", "hu100-v1.bin", "hu200-v2.bin")]
|
||||
env = {**{k: v for k, v in os.environ.items() if k != "MOTOR_TEMPO_TELL"}, **extra}
|
||||
SI.ersetzen(os.path.join(HIER, "umgebung_%s.txt" % ("tempo" if "MOTOR_TEMPO_TELL" in extra else "heute")),
|
||||
"".join("%s=%s\n" % (k, v) for k, v in sorted(env.items()) if k.startswith(("MOTOR_", "VERTRAUEN", "RAYON"))))
|
||||
p = subprocess.Popen([EXE, "dienst", "sechs100", d, "2000-600-400", km, g[0], "genau", "hu=%s,%s" % (g[1], g[2])], stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True, encoding="utf-8", bufsize=1, creationflags=0x08004000, env=env)
|
||||
out = queue.Queue(); threading.Thread(target=lambda: [out.put(z) for z in p.stdout], daemon=True).start()
|
||||
return p, out, []
|
||||
|
||||
|
||||
def anfragen():
|
||||
return pickle.load(open(CACHE, "rb"))
|
||||
|
||||
|
||||
def schluessel(q):
|
||||
return (len(q.get("history") or []), round(float(q.get("toCall") or 0), 4), tuple(sorted(json.dumps(c, sort_keys=True) for c in q.get("heroCards") or [])))
|
||||
|
||||
|
||||
def karte():
|
||||
os.environ["MOTOR_TEMPO_TELL"] = "1"
|
||||
import spot_from_log as S
|
||||
F, N = anfragen()
|
||||
ziel = {}
|
||||
for i, (hk, q) in enumerate(F):
|
||||
if q["street"] == "RIVER": ziel.setdefault(str(hk[1]), []).append(i)
|
||||
tempo = {}
|
||||
pfade = [p for p in sorted(glob.glob("D:/Projects/pokerfreak/archiv/rohlog/*.log.gz")) if os.path.getmtime(p) >= 1795651200 - 2 * 86400]
|
||||
for n, p in enumerate(pfade):
|
||||
try: t = gzip.open(p, "rt", encoding="utf-8", errors="replace").read()
|
||||
except (OSError, EOFError): continue
|
||||
for sp in S.spots(t):
|
||||
hand = str(sp[3])
|
||||
if hand not in ziel: continue
|
||||
a = json.loads(sp[0]) if isinstance(sp[0], str) else sp[0]
|
||||
if a.get("street") != "RIVER": continue
|
||||
lr = {v["seat"]: v["tempoLR"] for v in a.get("villains", []) if "tempoLR" in v}
|
||||
if not lr: continue
|
||||
for i in ziel[hand]:
|
||||
if schluessel(F[i][1]) == schluessel(a): tempo[i] = lr
|
||||
if n % 20 == 0: print("rohlog", n, len(pfade), "Anfragen mit Faktor", len(tempo), flush=True)
|
||||
os.makedirs(os.path.dirname(TEMPO), exist_ok=True)
|
||||
with open(TEMPO + ".neu", "wb") as fo: pickle.dump(tempo, fo)
|
||||
os.replace(TEMPO + ".neu", TEMPO)
|
||||
print("River-Anfragen", sum(len(v) for v in ziel.values()), "mit Faktor", len(tempo), flush=True)
|
||||
|
||||
|
||||
def mit_tempo(q, lr):
|
||||
q = json.loads(json.dumps(q))
|
||||
for v in q["villains"]:
|
||||
if v["seat"] in lr: v["tempoLR"] = lr[v["seat"]]
|
||||
return q
|
||||
|
||||
|
||||
def lauf(arm):
|
||||
F, N = anfragen(); T = pickle.load(open(TEMPO, "rb"))
|
||||
print("Haende", N, "River-Anfragen mit Faktor", len(T), "Arm", arm, flush=True)
|
||||
aus = os.path.join(HIER, "antworten_%s.jsonl" % arm)
|
||||
fertig = set(x["i"] for x in lesen(arm))
|
||||
m = starte(ARME[arm]); SI.ersetzen(os.path.join(HIER, "lauf_%s.pid" % arm), str(m[0].pid))
|
||||
os.environ["VERTRAUEN"] = "1"; import vertrauen
|
||||
with open(aus, "a", encoding="utf-8") as f:
|
||||
for i in sorted(T):
|
||||
if i in fertig or (arm == "heute2" and sorted(T).index(i) % 4): continue # Rauschkontrolle an jeder 4. Anfrage
|
||||
q = vertrauen.setze(mit_tempo(F[i][1], T[i]))
|
||||
a = RR.frag(m, q, 600)
|
||||
SI.warte_platz(aus); f.write(json.dumps({"i": i, "street": q["street"], "lr": T[i], "a": {k: a.get(k) for k in ("action", "size")}}) + "\n"); f.flush()
|
||||
m[0].kill()
|
||||
|
||||
|
||||
def lesen(arm):
|
||||
p = os.path.join(HIER, "antworten_%s.jsonl" % arm)
|
||||
for z in open(p, encoding="utf-8") if os.path.exists(p) else []:
|
||||
try: yield json.loads(z)
|
||||
except ValueError: pass
|
||||
|
||||
|
||||
def kipp(a, b, q):
|
||||
if a["action"] != b["action"]: return True
|
||||
if a["action"] in ("BET", "RAISE", "ALL_IN"):
|
||||
return abs((a.get("size") or 0) - (b.get("size") or 0)) > 0.01 * q["pot"]
|
||||
return False
|
||||
|
||||
|
||||
def fall(q, a, hk):
|
||||
L = RB.lage_river(q)
|
||||
if L is None: return None
|
||||
k, P, Zc, eff, ch = L
|
||||
brett = RB.karten((q.get("board") or {}).get("FLOP", []) + (q["board"].get("TURN") or []) + (q["board"].get("RIVER") or []))
|
||||
if len(brett) != 5: return None
|
||||
k = k[:5] + (RB.textur(brett),) + k[6:]
|
||||
if RB.am_zug(k[4]) == k[3]: return None
|
||||
p = RB.perzentil(RB.karten(q["heroCards"]), brett); zl, _ = RB.G4.lage(q)
|
||||
return {"k": k, "P": P, "Z": Zc, "eff": eff, "ch": ch, "p": p, "a": a, "hk": hk, "zelle": RB.Z.schluessel(zl), "q_bb": q.get("bigBlind") or .02,
|
||||
"pt": {"L": 0, "S": 1, "3": 2, "4": 2}[k[1]]}
|
||||
|
||||
|
||||
def wert(R, f):
|
||||
opt, mb = RI.motor_option(f); art, B = RI.option_betrag(f, opt, mb)
|
||||
return RI.bepreisen(R, f, art, B)
|
||||
|
||||
|
||||
def auswerten():
|
||||
sys.path.insert(0, os.path.join(PM, "poolmodell")); import fluss_scan; fluss_scan._niedrig()
|
||||
R = RI.Richter(RI.tafeln()); F, N = anfragen()
|
||||
A = {arm: {x["i"]: x for x in lesen(arm)} for arm in ARME}
|
||||
st = collections.Counter(); byh = collections.defaultdict(float); halb = [collections.defaultdict(float), collections.defaultdict(float)]
|
||||
zuege = collections.Counter()
|
||||
for i in sorted(set(A["heute"]) & set(A["tempo"])):
|
||||
hk, q = F[i]; st["anfragen"] += 1
|
||||
if i in A["heute2"]:
|
||||
st["kontrolle"] += 1; st["rauschen"] += kipp(A["heute"][i]["a"], A["heute2"][i]["a"], q)
|
||||
a0, a1 = A["heute"][i]["a"], A["tempo"][i]["a"]
|
||||
if not kipp(a0, a1, q): continue
|
||||
st["kipps"] += 1
|
||||
f0 = fall(q, a0, hk); f1 = fall(q, a1, hk)
|
||||
v0 = wert(R, f0) if f0 else None; v1 = wert(R, f1) if f1 else None
|
||||
if v0 is None or v1 is None: st["kipps_unbepreist"] += 1; continue
|
||||
st["kipps_bepreist"] += 1; d = v1 - v0; byh[tuple(hk)] += d
|
||||
h = int(hk[1]) & 1 if str(hk[1]).isdigit() else 0; halb[h][tuple(hk)] += d
|
||||
zuege["%s>%s" % (a0["action"], a1["action"])] += 1
|
||||
|
||||
def ci(b, n):
|
||||
v = np.array([x for x in b.values() if x != 0.0]); m = 100 * v.sum() / n if len(v) else 0.0
|
||||
rnd = np.random.default_rng(1); s = []
|
||||
for _ in range(2000):
|
||||
k = rnd.binomial(n, len(v) / n) if len(v) else 0; s.append(100 * rnd.choice(v, k, replace=True).sum() / n if k else 0.0)
|
||||
s = np.sort(s); return [round(float(m), 2), round(float(s[49]), 2), round(float(s[1949]), 2)]
|
||||
ges = ci(byh, N); h0 = ci(halb[0], N / 2); h1 = ci(halb[1], N / 2)
|
||||
out = {"haende": N, "zaehlung": dict(st), "tempo_minus_heute_bb100": ges, "haelften": [h0, h1],
|
||||
"schlechtester_fall_bb100": min(h0, h1, key=lambda x: x[0]), "zuege": dict(zuege.most_common()),
|
||||
"tor": "BESTANDEN" if ges[2] > 0 else "DURCHGEFALLEN"}
|
||||
ziel = os.path.join(HIER, "richter.json")
|
||||
with open(ziel + ".neu", "w", encoding="utf-8") as fo: json.dump(out, fo, ensure_ascii=False, indent=1)
|
||||
os.replace(ziel + ".neu", ziel)
|
||||
print(json.dumps(out, ensure_ascii=False, indent=1))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
{"karte": karte, "auswerten": auswerten}[sys.argv[1]]() if sys.argv[1] != "lauf" else lauf(sys.argv[2])
|
||||
Reference in New Issue
Block a user