大家好,又见面了,我是你们的朋友全栈君。
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使用教程,欢迎大家学习!
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/172945.html原文链接:https://javaforall.cn