I
I
Ilya1992018-07-31 15:06:36
PyCharm
Ilya199, 2018-07-31 15:06:36

What does stripe mean in pycharm?

5b60505a7c7f0650700009.png
Pointed at the strip, a window appeared, translated like this: "Indents contain tabs"
This seems to be not a mistake, since the code works.
If it is possible to remove it, then how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Guest007, 2018-10-30
@Guest007

Translation... :-(
You are indented with tabs, not spaces. When programming in Python, you need to hang the printed https://pep8.ru/doc/pep8/ in front of your eyes until you learn it by heart :-)
Read at the specified link ( everything is in Russian) about the correct indentation and tabs with spaces.
In PyCharm, open the settings (Ctrl-Alt-S), go to Editor -> Code Style -> Python and on the Tabs and Indents tab, check that there is no checkmark on Use tab character
Well, then correct all such places in the code. Replacing the text or something else - you'll figure it out :-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question