m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
285 B

6 months ago
  1. from sympy.codegen.ast import Print
  2. from sympy.codegen.pyutils import render_as_module
  3. def test_standard():
  4. ast = Print('x y'.split(), "coordinate: %12.5g %12.5g")
  5. assert render_as_module(ast, standard='python3') == \
  6. '\n\nprint("coordinate: %12.5g %12.5g" % (x, y))'