Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Python/Sympy/sympy/codegen/tests/     Datei vom 6.10.2026 mit Größe 334 B image not shown  

Quelle  test_pyutils.py   Sprache: Python

 

from __future__ import annotations
from sympy.codegen.ast import Print
from sympy.codegen.pyutils import render_as_module

def test_standard():
    ast = Print('x y'.split(), r"coordinate: %12.5g %12.5g\n")
    assert render_as_module(ast, standard='python3') == \
        '\n\nprint("coordinate: %12.5g %12.5g\\n" % (x, y), end="")'

Messung
CHZG
839810093

¤ Dauer der Verarbeitung: 0.15 Sekunden  ¤

*© Formatika GbR, Deutschland