似乎是 Atom / Hydrogen 如何解释代码的问题。for循环它会给我通过单击行号中的胡萝卜来“折叠”或“折叠”的选项。然而,if块/语句没有这样的运气。
编辑器名称和版本:Atom 1.35.1
平台:Mac OS Sierra 10.12.6
配色方案:一种深色/日晒深色
## this works:
for i in range(10):
print( i)
## this doesn't:
if not False:
print("test worked")
## this example doesn't throw an error, but only executes the "if" and not the else parts:
x= False
if x == True:
print("test")
elif x == None:
print ('test anyway')
else:
print('test again')
我已经完全卸载了 atom 并删除了所有已知的剩余文件(请参阅在此处输入链接描述,然后重新安装,问题仍然存在。
