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

How to uncomment in python

藏色散人
Release: 2019-10-17 11:13:52
Original
11473 people have browsed it

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 -*-
Copy after login

2. Need to be used When commenting, add:

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

Chinese comment method two:

Add three before and after the content single quotes:

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template