1 Star 1 Fork 1

iounce/Python-Cpp-demo

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
python_rect.pyx 279 Bytes
一键复制 编辑 原始数据 按行查看 历史
iounce 提交于 2023-07-24 22:05 +08:00 . Python Cpp demo
# distutils: language = c++
from python_rect cimport Rect
cdef class PyRect:
cdef Rect rect
def __init__(self, w, h):
self.rect = Rect(w, h)
def get_width(self):
return self.rect.width()
def get_height(self):
return self.rect.height()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/iounce_admin/python-cpp-demo.git
git@gitee.com:iounce_admin/python-cpp-demo.git
iounce_admin
python-cpp-demo
Python-Cpp-demo
master

搜索帮助