且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Sphinx 将代码格式添加到 :ref:

更新时间:2023-02-20 19:38:31

:any: 角色做你想做的事:

The :any: role does what you want:

:any:`__slots__ <python:slots>`

这是一个便利角色",它在当前域中查找交叉引用目标以及与 :ref: 一起使用的目标.

This is a "convenience role" that looks for cross-reference targets in the current domain as well as targets that work with :ref:.

Python 域有几个 特定的交叉-引用角色,用于不同类型的对象.

The Python domain has several specific cross-reference roles, for different types of objects.