Home > Article > Backend Development > 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!