The Python program's annotations feel very antisocial, and for those accustomed to using/**/multiline annotations, it is painful to use only the # in Python for single-line annotations.
Copy Code code as follows:
# This is a single-line comment
# a = 50
# b = 10
# c = 10
In fact, we can implement multiline annotations in a format defined by multiple lines of text:
Copy Code code as follows:
"""
# This is a multiline comment.
A = 50
b = 10
c = 10
"""
This approach feels good, and it doesn't make much difference to/**/multiline annotations, which works well when debugging code, and can be used to annotate parts of the code directly using multiple lines of text definition symbols. Perhaps Python's multiline text definition could have been used as a comment, except that the manual was not explicitly written for multiline annotations.