python included_pythonsphinx include指令:忽略included fi中的头

The following options are recognized:start-line : integer

Only the content starting from this line will be

included. (As usual in Python, the first line has index 0 and negative

values count from the end.)end-line : integer

Only the content up to

(but excluding) this line will be included.start-after : text to find in the external data file

Only the content after the first occurrence of the specified text will be included.end-before : text to find in the external data file

Only the content before the first occurrence of

the specified text (but after any after text) will be included.literal : flag (empty)

The entire included text is inserted into the

document as a single literal block.code : formal language (optional)

The argument and the content of the included file are passed to the

code directive (useful for program listings). (New in Docutils 0.9)number-lines : [start line number]

Precede every code line with a line

number. The optional argument is the number of the first line (defaut

1). Works only with code or literal. (New in Docutils 0.9)encoding : name of text encoding

The text encoding of the external data file.

Defaults to the document's input_encoding.tab-width : integer

Number of spaces for hard tab expansion. A negative value prevents expansion

of hard tabs. Defaults to the tab_width configuration setting.

With code or literal the common options :class: and :name: are recognized

as well.

Combining start/end-line and start-after/end-before is possible. The

text markers will be searched in the specified lines (further limiting

the included content).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值