Comments (2)
另外一个(跟本题无关)的小问题:
PyStand.cpp
第245行,执行py脚本的入口:
hr = _Py_Main((int)_py_args.size(), &_py_args[0]);
若python脚本是什么都不干的退出方式,或者用 os._exit(0)
的退出方式,那么_Py_Main
完成后可以继续执行后面的cpp代码。即上图中的=====555555=====可以打印。
若python脚本使用了 sys.exit(0)
的退出方式,那么_Py_Main
后续的cpp代码将不会执行。即上图中的=====555555=====不会打印出来。
from pystand.
没事了,应该是我脑子糊涂闹的乌龙🤣
from pystand.
Related Issues (20)
- win7无法启动python的一些经验、报错展示 HOT 1
- 导入ddddocr报错 HOT 3
- 加入numpy包的时候出现错误 HOT 9
- numpy导入问题补录 HOT 2
- 将runtime换成python3.10版本无法运行 HOT 5
- 360报毒了 HOT 1
- 请教:将python的stdout重定向到文件 HOT 3
- 请教一下如何精简pyqt HOT 2
- 如何解决multiprocessing导入时无限开启进程? HOT 3
- 如何打包ffmpeg HOT 1
- 加密问题:始终识别不到模块 HOT 5
- 建议在内置初始化脚本帮忙初始化DLL加载目录 HOT 4
- 是否可以内嵌 int 代码编译或者支持 __main__.py HOT 2
- 编译器问题
- PyStand启动速度 HOT 3
- 在脚本中启动新进程运行python
- 可以自己加入pip吗 HOT 2
- 64位启动脚本命名问题:不支持中文? HOT 3
- WinRar 制作自解压程序在 win7 解压运行时找不到 Py_Main HOT 2
- 导入numpy报错,可能是python小版本对不上的问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pystand.