Home  >  Article  >  Backend Development  >  What does # mean in python?

What does # mean in python?

藏色散人
藏色散人Original
2019-06-24 10:28:2832936browse

What does # mean in python?

What does # mean in python?

# in python is Python's single-line comment symbol (#)

The pound sign (#) is often used as a single-line comment symbol. When using # in the code, the right side of it Any data will be ignored and treated as comments.

For example: The content to the right of

# 这是一个注释
print("Hello, World!")

# will not be output during execution.

Related recommendations: "Python Tutorial"

The above is the detailed content of What does # mean in python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn