onlinejudge_template.generator.python module

the module to generate Python code

この module は Python のコードを生成します。

以下の関数を提供します。

加えて、ランダムケースの生成のために、以下の関数を提供します。

onlinejudge_template.generator.python.actual_arguments(data: Dict[str, Any]) → str[source]
onlinejudge_template.generator.python.declare_constants(data: Dict[str, Any], *, nest: int = 0) → str[source]
onlinejudge_template.generator.python.formal_arguments(data: Dict[str, Any], *, typed: bool = True) → str[source]
onlinejudge_template.generator.python.generate_input(data: Dict[str, Any], *, nest: int = 1) → str[source]
onlinejudge_template.generator.python.read_input(data: Dict[str, Any], *, nest: int = 1) → str[source]
onlinejudge_template.generator.python.return_type(data: Dict[str, Any]) → str[source]
onlinejudge_template.generator.python.return_value(data: Dict[str, Any]) → str[source]
onlinejudge_template.generator.python.write_input(data: Dict[str, Any], *, nest: int = 1) → str[source]
onlinejudge_template.generator.python.write_output(data: Dict[str, Any], *, nest: int = 1) → str[source]