朝鲜世界杯_2019篮球世界杯 - dyldrk.com

Python 3 不需要使用括号来打印内容。

使用Autohotkey制作宏。AHK免费且安装非常简单。www.autohotkey.com

您可以将宏分配给例如alt-p:

!p::send print(){Left}

这将使得 alt-p 输出 print() 并将光标移动到括号内部。

或者,更好的方法是直接解决您的问题,您可以定义一个自动替换并将其范围限制在打开的文件具有 .py 扩展名时:

#IfWinActive .py ;;; scope limiter

:b*:print ::print(){Left} ;;; I forget what b* does. The rest should be clear

#IfWinActive ;;; remove the scope limitation

这是一个保证的、无痛苦的、透明的解决方案。