就业培训     下载中心     Wiki     联络
登录   注册

Log
pybind11 2.10.0
  • 变更日志
  • 升级指南

基本

  • 安装库
  • 第一步
  • 面向对象代码
  • 构建系统

高级话题

  • 函数
  • 类
  • 异常
  • 智能指针
  • 类型转换
    • 概述
    • 字符串、字节和 Unicode 转换
    • STL (标准模板库) 容器
    • Functional
    • Chrono
    • Eigen
    • 自定义类型铸造程序
  • Python C++ 接口
    • Python 类型
    • NumPy
    • 实用程序
  • 嵌入解释器
  • 杂项

额外信息

  • 常见问题
  • 基准测试
  • 局限性
  • 参考
  • CMake 帮手
  1. 首页
  2. pybind11 2.10.0

Python C++ 接口 #

pybind11 exposes Python types and functions using thin C++ wrappers, which makes it possible to conveniently call Python code from C++ without resorting to Python’s C API.

  • Python 类型
    • Available wrappers
    • Instantiating compound Python types from C++
    • Casting back and forth
    • Accessing Python libraries from C++
    • Calling Python functions
    • Calling Python methods
    • 关键词自变量
    • Unpacking arguments
    • Implicit casting
    • Handling exceptions
    • Gotchas
  • NumPy
    • Buffer protocol
    • 数组
    • Structured types
    • Vectorizing functions
    • Direct access
    • Ellipsis
    • Memory view
  • 实用程序
    • Using Python’s print function in C++
    • Capturing standard output from ostream
    • Evaluating Python expressions from strings and files
  1. 首页
  2. pybind11 2.10.0
  3. Python 类型
  4. 自定义类型铸造程序

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1