onlinejudge_template.generator.python module¶
the module to generate Python code
この module は Python のコードを生成します。
以下の関数を提供します。
read_input()
write_output()
declare_constants()
formal_arguments()
actual_arguments()
return_type()
return_value()
加えて、ランダムケースの生成のために、以下の関数を提供します。
-
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]¶