Results of 1 - 2 of about 2 for pName (0.001 sec.)
- 1. 他のアプリケーションへの Python の埋め込み — Python 3.14.8 ドキュメント 9357
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. 他のアプリケーションへの Python の埋め込み テーマ 自動 ライト ダーク | 1. 他のアプリケーションへの Python の埋め込み ¶ 前
...ードは以下のようになります: #define PY_SSIZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyObject * pName , * pModule , * pFunc ; PyObject * pArgs , * pValue ; int i ; if ( argc < 3 ) { fprintf ( stderr , "Usage: call pythonfile...funcname [args] \n " ); return 1 ; } Py_Initialize (); pName = PyUnicode_DecodeFSDefault ( argv [ 1 ]); /* Error checking of pName left out */ pModule = PyImport_Import ( pName ); Py_...DECREF ( pName ); if ( pModule != NULL ) { pFunc = PyObject_GetAttrString ( pModule , argv [ 2 ]); /* pFunc is a new reference */ if ( pF... - https://man.mtool.work/python/3.14/extending/embedding.html
- 1. 他のアプリケーションへの Python の埋め込み — Python 3.14.8 ドキュメント 9357
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. 他のアプリケーションへの Python の埋め込み テーマ 自動 ライト ダーク | 1. 他のアプリケーションへの Python の埋め込み ¶ 前
...ードは以下のようになります: #define PY_SSIZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyObject * pName , * pModule , * pFunc ; PyObject * pArgs , * pValue ; int i ; if ( argc < 3 ) { fprintf ( stderr , "Usage: call pythonfile...funcname [args] \n " ); return 1 ; } Py_Initialize (); pName = PyUnicode_DecodeFSDefault ( argv [ 1 ]); /* Error checking of pName left out */ pModule = PyImport_Import ( pName ); Py_...DECREF ( pName ); if ( pModule != NULL ) { pFunc = PyObject_GetAttrString ( pModule , argv [ 2 ]); /* pFunc is a new reference */ if ( pF... - https://man.mtool.work/python/3.14/extending/embedding.html
PREV
1
NEXT