升华未正确显示

2024-05-12 16:59:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用Sublime3编写和编译python代码。
由于某些原因,submiterepl不能正确显示选项卡,但cmd可以。这是为什么?我该怎么修?你知道吗

    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


Tags: 代码selffor原因tab选项卡printformula
1条回答
网友
1楼 · 发布于 2024-05-12 16:59:41

您的submierepl是否配置为将选项卡显示为空格?在屏幕的右下角,是否显示如下内容?你知道吗

enter image description here

如果是,请单击显示“空格”的位置。应该会出现以下上下文菜单。你知道吗

enter image description here

只需取消选择“缩进使用空格”和前进你的subliverepl应该显示标签正确。你知道吗

相关问题 更多 >