pycharm怎么快速注释多行[pycharm使用教程]
在pycharm中我们怎么快速注释掉多行呢,有两种方法:
1、选中要注释的代码,然后Ctrl + '/'
具体效果看代码:
import matplotlib.pyplot as plt
data_dir = 'D:/Python/neural network/CIFAR10-Guoqingxu/data/'
BATCH_SIZE = 2
image_batch, label_batch = read_cifar10(data_dir,
is_train=True,
batch_size=BATCH_SIZE,
shuffle=True)
# import matplotlib.pyplot as plt
#
# data_dir = 'D:/Python/neural network/CIFAR10-Guoqingxu/data/'
# BATCH_SIZE = 2
# image_batch, label_batch = read_cifar10(data_dir,
# is_train=True,
# batch_size=BATCH_SIZE,
# shuffle=True)
2、折叠要注释的代码,然后Ctrl + '/'
效果示意:
Python学习网,有大量免费的Pycharm使用教程,欢迎大家学习!
以上是 pycharm怎么快速注释多行[pycharm使用教程] 的全部内容, 来源链接: utcz.com/z/526766.html