Procházet zdrojové kódy

Update pybind11.md

BLUELOVETH před 1 rokem
rodič
revize
4ba0b7d2e2
1 změnil soubory, kde provedl 10 přidání a 3 odebrání
  1. 10 3
      docs/pybind11.md

+ 10 - 3
docs/pybind11.md

@@ -1,8 +1,15 @@
-# pybind11 user guide
+---
+icon: log
+title: 'pybind11 User Guide'
+order: 21
+---
 
 ## Quick Start
 
-remember to use `py::scoped_interpreter guard{}` to start the interpreter before using any Python objects. Or explicitly call `py::interpreter::initialize()` and `py::interpreter::finalize()`.
+pkpy provides a [pybind11](https://pybind11.readthedocs.io/en/stable/) compatible layer which allows users to do convenient bindings.
+
+To begin with, use `py::scoped_interpreter guard{}` to start the interpreter before using any Python objects.
+Or explicitly call `py::interpreter::initialize()` and `py::interpreter::finalize()`.
 
 ### module
 
@@ -281,4 +288,4 @@ Need further discussion.
 
 - in-place operators, such as `+=`, `-=`, `*=`, etc., are not supported in pocketpy.
 
-- thre return value of `globals` is immutable in pocketpy.
+- thre return value of `globals` is immutable in pocketpy.