Python 3 print without parenthesis

前端 未结 8 1731
一整个雨季
一整个雨季 2020-11-30 01:27

The print used to be a statement in Python 2, but now it became a function that requires parenthesis in Python 3.

Is there anyway to suppress these par

8条回答
  •  爱一瞬间的悲伤
    2020-11-30 02:00

    The AHK script is a great idea. Just for those interested I needed to change it a little bit to work for me:

    SetTitleMatchMode,2         ;;; allows for a partial search 
    #IfWinActive, .py           ;;; scope limiter to only python files
    :b*:print ::print(){Left}   ;;; I forget what b* does
    #IfWinActive                ;;; remove the scope limitation
    

提交回复
热议问题