2016-11-16 25 views
1

我使用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

回答

0

是您的SublimeREPL可能配置爲顯示卡舌空間?在屏幕的右下角顯示下面的內容嗎?

enter image description here

如果是這樣,單擊它說: 「空間」。這應該會出現以下上下文菜單。

enter image description here

只需取消選擇「縮進使用空間」,還是今後的SublimeREPL應正確顯示選項卡。

+0

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

+0

我做到了,沒有任何事情發生 – jeaks

+0

嘗試將標籤寬度更改爲8並在SublimeREPL中再次執行您的命令 – ecounysis