1 Star 0 Fork 38

吴圣垚/Python for OpenHarmony

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dtpython.h 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
唐佐林 提交于 2021-09-29 18:12 . 0.3.0
/****************************************************************************
MIT License
Copyright (c) 2021 唐佐林
WeChat : delphi_tang
EMail: delphi_tang@dt4sw.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*****************************************************************************/
#ifndef DTPYTHON_H
#define DTPYTHON_H
/*
Description:
To initialize Python enviroment.
Parameter:
None
Return Value:
None
*/
void DTPython_Init(void);
/*
Description:
To run a python file.
Parameter:
file -- python file name, such as "test.py"
Return Value:
None
*/
void DTPython_RunFile(const char* file);
/*
Description:
To run python code statements.
Parameter:
statement -- python statements, such as "a = 1 + 2"
Return Value:
None
*/
void DTPython_RunCode(const char* statement);
/*
Description:
To clean up Python enviroment.
Parameter:
None
Return Value:
None
*/
void DTPython_Deinit(void);
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/shen_hua_li/python-for-hos.git
git@gitee.com:shen_hua_li/python-for-hos.git
shen_hua_li
python-for-hos
Python for OpenHarmony
master

搜索帮助