使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

commentcommentCommentCommentcomment注释(算子)

名称

commentcommentCommentCommentcomment — 在程序中添加一行注释。

签名

comment( : : Comment : )

Herror comment(const char* Comment)

Herror T_comment(const Htuple Comment)

void Comment(const HTuple& Comment)

static void HOperatorSet.Comment(HTuple comment)

def comment(comment: str) -> None

描述

commentcommentCommentCommentCommentcomment 允许在程序中添加一行注释。作为参数值(即注释),允许使用所有字符。若通过算子窗口输入注释,且注释行参数中包含换行符,则每行文本将插入一条注释语句。

在全文编辑器中,通过在注释行首输入星号('*'"*""*""*""*""*")作为首个非空格字符来标记注释。

此算子对程序执行没有影响。

参数

CommentCommentCommentCommentcommentcomment (输入控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

任意字符序列。

示例(HDevelop)

* This is a program with comments
* 'this is a string as comment'
* here are numbers: 4711, 0.815
stop ()

结果

commentcommentCommentCommentCommentcomment 永远不会被执行。

模块

基础