This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
fastNLP
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
13
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Updated 用reStructuredText语法为代码写注释 (markdown)
master
lyhuang18
6 years ago
parent
0a14e9dd50
commit
08d3270e56
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
用reStructuredText语法为代码写注释.md
+ 1
- 1
用reStructuredText语法为代码写注释.md
@@ -29,7 +29,7 @@ def my_function(my_arg, my_other_arg):
"""
```
### Tips:
1. 在`:param arg:`前必须空一行,才能显示出参数和返回值列表;在arg前面可以加上变量类型
1. 在`:param arg:`前必须空一行,才能显示出参数和返回值列表;在
`
arg
`
前面可以加上变量类型
2. `::`标记如果作为独立段落存在,则整段都不会出现在文档里;如果前面有空白,则标记被移除;如果前面是非空白,则标记被一个冒号取代。
3. `.. note::`能生成一个note
Write
Preview
Loading…
Cancel
Save