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
08d3270e56
commit
635e0eeb56
1 changed files
with
1 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
用reStructuredText语法为代码写注释.md
+ 1
- 2
用reStructuredText语法为代码写注释.md
@@ -30,8 +30,7 @@ def my_function(my_arg, my_other_arg):
```
```
### Tips:
### Tips:
1. 在`:param arg:`前必须空一行,才能显示出参数和返回值列表;在`arg`前面可以加上变量类型
1. 在`:param arg:`前必须空一行,才能显示出参数和返回值列表;在`arg`前面可以加上变量类型
2. `::`标记如果作为独立段落存在,则整段都不会出现在文档里;如果前面有空白,则标记被移除;如果前面是非空白,则标记被一个冒号取代。
3. `.. note::`能生成一个note
2. `.. note::`能生成一个note
## 其他可能会用到的
## 其他可能会用到的
Write
Preview
Loading…
Cancel
Save