Ai
0 Star 0 Fork 0

wan230114/PythonNote

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
server.py 567 Bytes
一键复制 编辑 原始数据 按行查看 历史
wan230114 提交于 2020-09-10 21:16 +08:00 . 🙈 Some minor updates.
"""
cd /d %~dp0
explorer http://localhost:3000
powershell -ExecutionPolicy ByPass -Command "docsify serve"
"""
from multiprocessing import Process
import time
import os
print('Global_print', os.getpid())
def run_proc(name):
time.sleep(2)
os.system('explorer http://localhost:3000')
print('Run child process %s (%s)…' % (name, os.getpid()))
if __name__ == '__main__':
p = Process(target=run_proc, args=('test',))
print('__main__ pid:', os.getpid())
p.start()
os.system('powershell -ExecutionPolicy ByPass -Command "docsify serve"')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wan230114/PythonNote.git
git@gitee.com:wan230114/PythonNote.git
wan230114
PythonNote
PythonNote
master

搜索帮助