Sublime text 2をPythonのIDEとしてPythonの開発を実現
2800 ワード
今から試して、SublimeでPythonを開発する方法を試してみましょう.
【振り回される過程】
1.SublimeをPythonのIDEとして、ここで述べたように、その他必要な機能を含むが、これらに限定されない.
2.Sublime Text 2に特化し、Pythonテストコードを以下のように書いた.
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Function:
【 】 Sublime Text 2 Python IDE Python
http://www.crifan.com/use_sublime_text_2_as_python_ide
Author: Crifan Li
Version: 2013-02-01
Contact: admin at crifan dot com
"""
def
sublimeText2IdeDemo():
"""
Demo how to use sublime text 2 as Python IDE
also try to support:
input parameter
autocomplete
"""
print
"Demo print in Sublime Text 2"
;
inputVal
=
raw_input
(
"Now in sublime text 2, please input parameter:"
);
print
"Your inputed parameter is "
,inputVal;
if
__name__
=
=
"__main__"
:
sublimeText2IdeDemo();
次にpythonコードを実行すると、エラー「The system cannot find the file specified」が発生しました.詳細は次のとおりです.
【解決済み】Sublime Text 2でPythonプログラムを実行中にエラーが発生しました:The system cannot find the file specified
3.pythonが見つからない問題を解決した後、次のエラーが発生しました.
【解決済み】Sublimeでの実行帯域inputまたはraw_InputのPythonコードエラー:EOFError:EOF when reading a line
4.しばらく、SublimeREPLで一時的に解決しただけで、パラメータ入力をサポートする問題は、あまり使いにくいですが.
他の機能の特徴については、暇があればまた試してみましょう.
しかし、ただ遊んでいるだけで、Sublimeは、Pythonの開発には向いていません.詳しくは上記の投稿を参照してください.