有沒有看到別人打開一個(gè)py文件就有各種注釋,什么時(shí)間啊作者啊文件名等等,自己卻沒親手嘗試過呢,來簡單看看吧
打開Pycharm,新建py項(xiàng)目,然后點(diǎn)擊左上角File,再settings->Editor->File and Code Templates->Python Script,輸入對應(yīng)模版信息

Template.jpg
點(diǎn)Apply并關(guān)閉設(shè)置后新建py文件就能看到效果啦

Demo.jpg
有沒有看到別人打開一個(gè)py文件就有各種注釋,什么時(shí)間啊作者啊文件名等等,自己卻沒親手嘗試過呢,來簡單看看吧
打開Pycharm,新建py項(xiàng)目,然后點(diǎn)擊左上角File,再settings->Editor->File and Code Templates->Python Script,輸入對應(yīng)模版信息
點(diǎn)Apply并關(guān)閉設(shè)置后新建py文件就能看到效果啦