SublimeREPL显示不正确

问题描述:

我使用Sublime3来编写和编译python代码。
由于某些原因,SublimeREPL不会正确显示选项卡,但cmd会。为什么这样,我该如何解决它?SublimeREPL显示不正确

parantezeDeschise=0 # counts '(' 
    locatieParanteze=[] # location of '(' 
    for i in range(len(self.Propozitie)): 
     print str(i+1)+'.', 
     if self.Propozitie[i]=='(': # for every '(' there should be a TAB 
      print (parantezeDeschise * '\t'),self.Propozitie[i],'cere formula compusa' 
      parantezeDeschise+=1 
      locatieParanteze.append(i) 
     elif self.Propozitie[i]==')': # every ')' removes a TAB 
      parantezeDeschise-=1 
      print (parantezeDeschise * '\t'),self.Propozitie[i],'rezolva formula compusa [',locatieParanteze.pop()+1,']' 
     else: 
      print (parantezeDeschise * '\t'),self.Propozitie[i] 

enter image description here

是您的SublimeREPL可能配置为显示卡舌空间?在屏幕的右下角显示下面的内容吗?

enter image description here

如果是这样,单击它说: “空间”。这应该会出现以下上下文菜单。

enter image description here

只需取消选择“缩进使用空间”,还是今后的SublimeREPL应正确显示选项卡。

+0

我不知道。我如何检查? – jeaks

+0

我做到了,没有任何事情发生 – jeaks

+0

尝试将标签宽度更改为8并在SublimeREPL中再次执行您的命令 – ecounysis