python常用技巧

1,关于tab键与4个空格:

  由于不同平台间,tab键值设置有所区别,据相关介绍,官方在缩进方面推荐使用4个空格。方便起见,可设置tab自动转换为4个空格。

  1.1在pycharm中:

      通过file-->setting-->editor-->code style-->python中进行设置

      table size :4

      indent:4

      continuation indent:8

猜你喜欢

转载自www.cnblogs.com/shengjie1/p/9693209.html
今日推荐