开发者

Python print output while embedding Python in C\C++

开发者 https://www.devze.com 2023-03-04 21:32 出处:网络
Where does Python print to, if the print statement is in a python function, called from 开发者_如何学JAVAC\\C++ in an embedded Python configuration?In python, the print statement writes into sys.stdou

Where does Python print to, if the print statement is in a python function, called from 开发者_如何学JAVAC\C++ in an embedded Python configuration?


In python, the print statement writes into sys.stdout (which is the standard output) even in an embedded app, you should see your prints in the console that started the application.

0

精彩评论

暂无评论...
验证码 换一张
取 消