你遇到过的源代码中最好的注释是什么?


当前回答

[vrk:Cloud ID="cTags" runat="server" DataTextField="Tag" DataWeightField="Total"
    Width="100%" DataHrefField="Tag" DataHrefFormatString="~/tags.aspx?tag={0}"]
[/vrk:Cloud]

[!--if anybody would like to change the control's color contact with FLORJON--]

其他回答

大概30页的xslt的中间部分

<!-- Here be dragons  -->

我经常看到这种情况:

// TODO make this work
if(count<0) count=0;    //don't get me wrong but this has to be done :p
REM Don't delete this print statement ****** will die

所讨论的流程是一些遗留代码中的服务

下面的代码是在Python模拟教程中看到的。

# This is my rifle.
def rifle(type='hunting'):
    print('This is my (%s) rifle.' % type)

# This is my gun.
def gun(type='hand'):
    print('This is my (%s) gun.' % type)

# This is for fighting.
def fighting(type='illegal'):
    print('This is for (%s) fighting.' % type)

# This is for fun.
def fun(type='gaming'):
    print('This is for (%s) fun.' % type)

作者一定是《恶搞之家》的粉丝。^ _ ^