Add python3 support, add english readme
This commit is contained in:
@@ -138,6 +138,21 @@ _py2_lang_config = {
|
||||
"seccomp_rule": "general",
|
||||
}
|
||||
}
|
||||
_py3_lang_config = {
|
||||
"compile": {
|
||||
"src_name": "solution.py",
|
||||
"exe_name": "__pycache__/solution.cpython-35.pyc",
|
||||
"max_cpu_time": 3000,
|
||||
"max_real_time": 5000,
|
||||
"max_memory": 128 * 1024 * 1024,
|
||||
"compile_command": "/usr/bin/python3 -m py_compile {src_path}",
|
||||
},
|
||||
"run": {
|
||||
"command": "/usr/bin/python3 {exe_path}",
|
||||
"seccomp_rule": "general",
|
||||
"env": ["PYTHONIOENCODING=UTF-8"]
|
||||
}
|
||||
}
|
||||
|
||||
languages = [
|
||||
{"config": _c_lang_config, "spj": {"compile": _c_lang_spj_compile, "config": _c_lang_spj_config},
|
||||
@@ -145,7 +160,8 @@ languages = [
|
||||
{"config": _cpp_lang_config, "spj": {"compile": _cpp_lang_spj_compile, "config": _cpp_lang_spj_config},
|
||||
"name": "C++", "description": "G++ 4.8", "content_type": "text/x-c++src"},
|
||||
{"config": _java_lang_config, "name": "Java", "description": "OpenJDK 1.7", "content_type": "text/x-java"},
|
||||
{"config": _py2_lang_config, "name": "Python2", "description": "Python 2.7", "content_type": "text/x-python"}
|
||||
{"config": _py2_lang_config, "name": "Python2", "description": "Python 2.7", "content_type": "text/x-python"},
|
||||
{"config": _py3_lang_config, "name": "Python3", "description": "Python 3", "content_type": "text/x-python"},
|
||||
]
|
||||
|
||||
spj_languages = list(filter(lambda item: "spj" in item, languages))
|
||||
|
||||
Reference in New Issue
Block a user