vig*_*esh 2 python user-interface indentation
当我在python中编写代码时,突然觉得在我已编写的代码前添加一个新块......完整代码的缩进会受到影响..移动到每一行并更改它是非常繁琐的过程缩进...有没有办法做自动缩进或什么...
例如:
def somefunction:
x =5
return x
Run Code Online (Sandbox Code Playgroud)
如果我想添加一个控制块
例如:
def somefunction:
if True:
x =5
return x
return 0
Run Code Online (Sandbox Code Playgroud)
添加控制块的这个小改动花了很多标签工作....
有没有快捷方式或一切可以做到这一点?
归档时间: |
|
查看次数: |
5116 次 |
最近记录: |