Home >Backend Development >Python Tutorial >How to uncomment in python

How to uncomment in python

藏色散人
藏色散人Original
2019-10-17 11:13:5211469browse

How to uncomment in python

How to uncomment in python?

python uncomment

The built-in IDE alt f3 to add a comment alt f4 to remove the comment pycharm ctrl/add a comment and press again Remove comments.

Recommended: "Python Tutorial"

How to make Chinese comments in Python

Chinese comment method one:

1. Statement at the beginning of the program:

# -*- coding: utf-8 -*-

2. Need to be used When commenting, add:

#内容
 
exp:
 
#!/usr/bin/env python3
 
# -*- coding: utf-8 -*-
 
#不能删掉,防止下载进度的百分比被遮盖‘#’号是注释

Chinese comment method two:

Add three before and after the content single quotes:

'''
 
内容
 
'''
 
exp:
 
'''
 
print('脚本%s s后自动关闭' % window_close_time)
 
'''

The above is the detailed content of How to uncomment 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