文章詳情頁
Eclipse配置python默認頭過程圖解
瀏覽:4日期:2022-07-27 13:47:44
eclipse 配置 python 默認頭
打開eclipse 點 窗口(Windows)->首選項(Preferences)
Preferences窗口,點 PyDev --> Editor --> Templates,再點右上角的新建(New),進入新增模板窗口(New Template)
(New Template)' 窗口,name輸入:pythonhead; Description輸入:“注明文件編碼,版本號,時間,作者” ; Pattern輸入:
#!/usr/bin/python3# encoding:utf-8’’’Created on ${currentDate:date(’yyyy-MM-dd HH:mm’)}@author: ${user}’’’
(Context)選“New Module',Automatically insert前打勾,輸入選擇完畢,點擊“OK”
新建完成之后,返回Preferences窗口,點擊“Apply and Close”按鈕
回到主界面,新增新py文件
選擇“pythonhead”,點擊“OK”!
在這里插入圖片描述
最終得到結果,新建的pythontest.py,頭部位置默認有如下圖內容
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網。
相關文章:
排行榜