1 Star 0 Fork 0

Jesse/ConsolePlayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.py 621 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jesse 提交于 2021-05-09 12:53 +08:00 . init
#encoding=utf-8
from os import system, getcwd, path, mkdir;
import webbrowser;
if not path.exists(getcwd()+"\\log"):
mkdir('log');
system('python -V >log\\py_log');
f = open(getcwd() + '\\log\\py_log', 'r', encoding='utf-8');
lst = f.readlines();
content = str(lst);
if 'python 3' in content or 'Python 3' in content:
# print('pass');
if path.exists('trans.exe'):
while True:
system(getcwd() + '\\trans.exe');
elif path.exists('trans.py'):
while True:
system('python trans.py');
else:
print('Python\'s not installed! ');
webbrowser.open("https://www.python.org/downloads");
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/forinks/console-player.git
git@gitee.com:forinks/console-player.git
forinks
console-player
ConsolePlayer
master

搜索帮助