Home > other >  The annotation of documentation strings
The annotation of documentation strings

Time:10-11

Defines a function, application commented out three quotes text, namely the "show..." Commented out, can print behind also, function cannot run; Delete the second line, print, according to the normal function can run, want to ask what is wrong? I am follow steps away from books,

CodePudding user response:

Print add a blank line in front of the

CodePudding user response:

This question is very interesting, the single quotes you input format different cause of this problem,
In theory, the content between the two of three single quotation marks are comments, separate three quotes, then the all content is for comments,
So you this usage is no problem, the problem appeared in front of you three quotation marks in English characters, the back of the three Chinese characters,
Ha ha ha ha ha ha ha ha ha ha ha

CodePudding user response:

refer to the second floor nangongxiaobai response:
this question is very interesting, the single quotes you input format different cause of this problem,
In theory, the content between the two of three single quotation marks are comments, separate three quotes, then the all content is for comments,
So you this usage is no problem, the problem appeared in front of you three quotation marks in English characters, the back of the three Chinese characters,
Ha ha ha ha ha ha ha ha ha ha ha

Thank you, already solved ~ ~ (') - omega - `)
  • Related