public virtual void Interpreter(Context context) { if (context.Statement.Length == 0) { return; } foreach (string key in table.Keys) { int value = table[key]; if (context.Statement.EndsWith(key + GetPostFix()))
function interpreter($str) { switch($str) { case "0": return "零"; case "1": return "一"; case "2": return "二"; case "3": return "三"; case "4": return "四"; case "5": return "五"; case "6": return "六"; ...
2.選擇Tools-Preferences,跳出如下窗口 3.選擇右側(cè) Use the following Python interpreter: 然后點(diǎn)擊右側(cè)目錄標(biāo)志,選擇解釋器/虛擬環(huán)境的路徑 4.點(diǎn)擊OK,重啟spyder,你就可以使用默認(rèn)解釋器或者虛擬環(huán)境進(jìn)行編碼了 總結(jié) 以上就是spyder設(shè)置默認(rèn)python解釋器/虛擬環(huán)境的操作,歡迎點(diǎn)贊收藏!