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鐖嗙孩

python selenium涓璱frame鍒囨崲銆亀indow鍒囨崲鏂规硶

KaliLinux鍒囨崲python鐗堟湰

Vim 缂栬緫鍣ㄥ父鐢ㄥ懡浠?/a>

Ueditor缂栬緫鍣ㄩ檮浠朵笂浼犻厤缃紙闈炶法鍩燂級