mac sublime鍒囨崲缂栬緫璇█鐨勬柟娉?娣诲姞鍏朵粬鐗堟湰鐨刾ython)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac sublime鍒囨崲缂栬緫璇█鐨勬柟娉?娣诲姞鍏朵粬鐗堟湰鐨刾ython)相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/lib' title='lib'>lib
bsp ack odi sublime selector package 鍐呭 pac鍦╯ublime涓寚瀹歱ython鐗堟湰,鎿嶄綔濡備笅:
Sublime鈥斺€攖ools鈥斺€攂uild system鈥斺€攏ew build system
鎶婃枃浠朵腑鐨勫唴瀹规浛鎹负
{
"cmd": ["/usr/local/bin/python3", "-u", "$file"],
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python"
}
淇敼瀹屾垚涔嬪悗淇濆瓨銆傜劧鍚庡湪Sublime鈥斺€攖ools鈥斺€攂uild system涓€変腑浣犲垰鍒氭柊澧炵殑build system鍗冲彲
娉ㄦ剰锛氭澶?usr/local/bin/python3鐨勫湴鍧€搴斾负瀹為檯鍦板潃,鍙敤濡備笅鏂规硶鏌ヨ锛氬湪缁堢涓緭鍏?which python3
杩欐牱淇敼涔嬪悗杩樺彂鐜版枃浠朵腑鏃犳硶鍐欎腑鏂?缁忔祴璇曢渶鍦ㄤ笂闈㈡枃浠朵腑娣诲姞:
鈥渆nv鈥? {鈥淧YTHONIOENCODING鈥? 鈥渦tf8鈥潁
鏃㈡柊澧炵殑build system瀹屾暣鍐呭搴旇涓?
{
"cmd": ["/usr/local/bin/python3", "-u", "$file"],
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf8"}
}
濡傛灉鍙戠幇鏂板缓鐨刡uild system鏈夎鎴栬€呭悕瀛椾笉鍠滄,鍙互鍦?br>/Users/kaibinliu/Library/Application Support/Sublime Text 2/Packages/User 鏂囦欢澶归噷鍒犳帀淇濆瓨鐨勬寚瀹歱ython鐨勯偅涓枃浠?/p>
(鎴戞槸淇濆瓨鏂囦欢锛屽湪鏂囦欢閲屽啓浜?鑾峰彇褰撳墠鏂囦欢璺緞鎵惧埌鐨刬mport os print os.getcwd())
以上是关于mac sublime鍒囨崲缂栬緫璇█鐨勬柟娉?娣诲姞鍏朵粬鐗堟湰鐨刾ython)的主要内容,如果未能解决你的问题,请参考以下文章
浣跨敤浜咢Slf4j log娌℃湁info鐨勬柟娉?.info()鏂规硶鐖嗙孩鎴栬€卨og鐖嗙孩