Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何取消spyder python的注释_Python_Comments_Spyder - Fatal编程技术网

如何取消spyder python的注释

如何取消spyder python的注释,python,comments,spyder,Python,Comments,Spyder,我在spyder ide for python中有一段代码 print('hello world') print('hello world') print('hello world') print('hello world') print('hello world') print('hello world') print('hello world') 突出显示代码块,然后按ctrl-4将其注释掉 #print('hello world') #print('hello world') #prin

我在spyder ide for python中有一段代码

print('hello world')
print('hello world')
print('hello world')
print('hello world')
print('hello world')
print('hello world')
print('hello world')
突出显示代码块,然后按ctrl-4将其注释掉

#print('hello world')
#print('hello world')
#print('hello world')
#print('hello world')
#print('hello world')
#print('hello world')
#print('hello world')
通过再次突出显示代码并按crtl-5,取消注释只在某些时候起作用。我想返回到没有注释的原始代码块

print('hello world')
print('hello world')
print('hello world')
print('hello world')
print('hello world')
print('hello world')
print('hello world')
其他人对spyder有此问题吗?

尝试Ctrl+1(同时按下)
这不会把你带到你开始的地方,但这是值得的。。您使用哪个版本的Spyder?(该功能对我来说很好,在Windows 10上的Spyder 4.0.0b7)顺便说一句,您可以通过选择要(取消)注释的代码块并按CTRL+1来实现您的要求-您尝试过吗?