開源 企業服務 高校版 私有雲 模力方舟 AI 队友
程式碼拉取完成,頁面將自動刷新
捐贈
捐贈前請先登錄
掃描微信二維碼支付
取消
支付完成
支付提示
將跳轉至支付寶完成支付
確定
取消
12 Star 14 Fork 19

OpenHarmony-SIG/python
關閉

加入 Gitee
與超過 1400 萬 開發者一起發現、參與優秀開源項目,私有倉庫也完全免費 :)
免費加入
已有帳號? 立即登錄
文件
master
分支 (1)
master
該倉庫未聲明開源許可證文件(LICENSE),使用請關注具體項目描述及其代碼上游依賴。
項目倉庫所選許可證以倉庫主分支所使用許可證為准
master
分支 (1)
master
克隆/下載
克隆/下載
提示
下載代碼請複製以下命令到終端執行
為確保你提交的程式碼身份被 Gitee 正確識別,請執行以下命令完成配置。
初次使用 SSH 協議進行程式碼克隆、推送等操作時,需按下述提示完成 SSH 配置
1 生成 RSA 密鑰
2 獲取 RSA 公鑰內容,並配置到 SSH公鑰
在 Gitee 上使用 SVN,請訪問 使用指南
使用 HTTPS 協議時,命令行會出現如下帳號密碼驗證步驟。基於安全考慮,Gitee 建議 配置並使用私人令牌 替代登入密碼進行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (1)
master
getbuildinfo.c 1.30 KB
一鍵複製 編輯 原始數據 按行查看 歷史
bayanxing 提交於 2021年10月22日 16:55 +08:00 . python3.8 for openharmony l2
#include "Python.h"
#ifndef DONT_HAVE_STDIO_H
#include <stdio.h>
#endif
#ifndef DATE
// #ifdef __DATE__
// #define DATE __DATE__
// #else
#define DATE "xx/xx/xx"
// #endif
#endif
#ifndef TIME
// #ifdef __TIME__
// #define TIME __TIME__
// #else
#define TIME "xx:xx:xx"
// #endif
#endif
/* XXX Only unix build process has been tested */
#ifndef GITVERSION
#define GITVERSION ""
#endif
#ifndef GITTAG
#define GITTAG ""
#endif
#ifndef GITBRANCH
#define GITBRANCH ""
#endif
const char *
Py_GetBuildInfo(void)
{
static char buildinfo[50 + sizeof(GITVERSION) +
((sizeof(GITTAG) > sizeof(GITBRANCH)) ?
sizeof(GITTAG) : sizeof(GITBRANCH))];
const char *revision = _Py_gitversion();
const char *sep = *revision ? ":" : "";
const char *gitid = _Py_gitidentifier();
if (!(*gitid))
gitid = "default";
PyOS_snprintf(buildinfo, sizeof(buildinfo),
"%s%s%s, %.20s, %.9s", gitid, sep, revision,
DATE, TIME);
return buildinfo;
}
const char *
_Py_gitversion(void)
{
return GITVERSION;
}
const char *
_Py_gitidentifier(void)
{
const char *gittag, *gitid;
gittag = GITTAG;
if ((*gittag) && strcmp(gittag, "undefined") != 0)
gitid = gittag;
else
gitid = GITBRANCH;
return gitid;
}
Loading...
舉報
舉報成功
我們將於2個工作日內通過站內信反饋結果給你!
請認真填寫舉報原因,盡可能提供描述詳細。
請選擇舉報類型
取消
發送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

發行版

暫無發行版

貢獻者

全部

近期動態

不能加載更多了
編輯倉庫簡介
簡介內容
主頁
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/python.git
git@gitee.com:openharmony-sig/python.git
openharmony-sig
python
python
master
點此查找更多幫助

搜索幫助

評論
倉庫舉報
回到頂部
登錄提示
該操作需登錄 Gitee 帳號,請先登錄後再操作。
立即登錄
沒有帳號,去註冊

AltStyle によって変換されたページ (->オリジナル) /