Home  >  Article  >  Backend Development  >  What is the shortcut key for python comments?

What is the shortcut key for python comments?

coldplay.xixi
coldplay.xixiOriginal
2021-03-09 15:56:2560458browse

Python comment shortcut keys: 1. Single-line comments are [#], Mac shortcut keys are [command /], Windows shortcut keys are [Ctrl /]; 2. Multi-line comments are three single quotes 【'''Comments'''].

What is the shortcut key for python comments?

The operating environment of this tutorial: Windows 7 system, python version 3.9, DELL G3 computer.

python comment shortcut key:

1. Single-line comment

Single-line comment is

#Mac The shortcut key for windows is command /

The shortcut key for windows is Ctrl /

What is the shortcut key for python comments?

2. Multi-line comments

Multi-line comments are three single quotes '''Comments'''

Because of this string There is no name, and the program does not do anything with this string, so it has no impact on the running of the program. It is equivalent to a comment, although not really a comment in the strict sense.

What is the shortcut key for python comments?

Related free learning recommendations: python video tutorial

The above is the detailed content of What is the shortcut key for python comments?. 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