我在Windows下搭建了Oline-Judge ,请问提交如何支持python语言
我在Windows下搭建了Oline-Judge ,请问提交如何支持python语言
![]() |
![]() |
2023 |
![]() |
![]() |
1970 |
![]() |
![]() |
1763 |
4 |
![]() |
1718 |
5 |
![]() |
1710 |
6 |
![]() |
1701 |
7 |
![]() |
1684 |
8 |
|
1678 |
9 |
![]() |
1664 |
10 |
![]() |
1653 |
1:https://gitee.com/jungle/online-judge/blob/master/judger-kernel/release/conf/Language.xml 文件放开python,id是9,名字你可以改成你的版本的,或者不带版本的。
2:https://gitee.com/jungle/online-judge/blob/master/judger-kernel/release/conf/config.ini
修改[RunCmd]中的Python=C:\Python27\python.exe -O %NAME%.%EXE% python路径,即可
谢谢
提交代码,显示Wrong Answer on test 1
您有联系方式吗
见私信
确认下本地直接跑能跑python么
尝试python的路径加入到环境变量试试
试一下这个: https://stackoverflow.com/questions/42512817/fatal-python-error-on-windows-10-modulenotfounderror-no-module-named-encodings ====》最后一步 Next, in the top portion of the 'Environment Variables' window, look for the PYTHONHOME variable and make sure that it is also set to C:\Python37-32