美文网首页
python pycharm 对齐

python pycharm 对齐

作者: HD1992 | 来源:发表于2019-03-07 16:31 被阅读0次

    pycharm 报错:IndentationError: unindent does not match any outer indentation level
    眼看对齐,实际是tab与空格混用,会报错
    File -> Settings -> Editor -> Appearance -> 勾选“Show line numbers”、“Show whitespaces”、“Show method separators 勾选完之后就可以显示制表符:横向箭头, 空格:点,效果见图1

    通过设置smart tabs会比较方便,设置过程间图2

    图1.png
    图2.png

    相关文章

      网友评论

          本文标题:python pycharm 对齐

          本文链接:https://www.haomeiwen.com/subject/pzxhpqtx.html