pyspj.entry.script¶
execute_spj¶
-
pyspj.entry.script.
execute_spj
(spj, stdin, stdout, type_=None, arguments=None) → pyspj.models.base.SPJResult[source]¶ Execute the special judge.
- Parameters
spj – Special judge function, can be a string or a spj-function.
stdin – Stdin stream, can be a string stream or a file stream.
stdout – Stdout stream, should be a string stream or a file stream.
type – Load type, should be a result mode string or enum.
arguments – Attached arguments.
- Returns
Result of this special judge.
execute_spj_from_string¶
-
pyspj.entry.script.
execute_spj_from_string
(spj, stdin, stdout, type_=None, arguments=None) → pyspj.models.base.SPJResult[source]¶ Execute special judge with string value.
- Parameters
spj – Special judge function, can be a string or a spj-function.
stdin – Stdin stream, can be a string stream.
stdout – Stdout stream, should be a string stream.
type – Load type, should be a result mode string or enum.
arguments – Attached arguments.
- Returns
Result of this special judge.
execute_spj_from_file¶
-
pyspj.entry.script.
execute_spj_from_file
(spj, stdin_file, stdout_file, type_=None, arguments=None) → pyspj.models.base.SPJResult[source]¶ Execute special judge with string file.
- Parameters
spj – Special judge function, can be a string or a spj-function.
stdin_file – Stdin stream, can be a file stream.
stdout_file – Stdout stream, should be a file stream.
type – Load type, should be a result mode string or enum.
arguments – Attached arguments.
- Returns
Result of this special judge.