时间:2021-07-01 10:21:17 帮助过:42人阅读
当然ipython系列啦。ipython notebook 也很棒。支持markdown mathjax。嵌入代码。还可以导出PDF格式哟。下个anancoda就行。一键下载一键安装。win。mac。Linux。平台都行。重点是免费。PTVS is a free, open source plugin that turns Visual Studio into a Python IDE.
PTVS supports CPython, IronPython, editing, browsing, Intellisense, mixed Python/C++ debugging, remote linux/MacOS debugging, profiling, IPython, Django, and cloud computing with client libraries for Windows, Linux and MacOS.
Designed, developed, and supported by Microsoft and the community.
点击“Preference”-----》“Browse Packages”----------》“python”,编辑Python.sublime-build文件,添加python应用程序的路径,我的是安装到了c:\Python27路径中:
{
"cmd":["python.exe", "-u", "$file"],
"path":"C:/Python27",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}注意:1、代码路径和环境变量的路径中不要带中文,对中文支持还不好。
2、写完程序后,需要先保存一下,才能够运行。运行时按ctrl+b。
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('Package Control'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'然后按Ctrl+Shift+P(Win) 或 Command+Shift+P(Mac) 调出控制面板,就可以下载主题啦。
{参考下:Sublime Text 2 主题推荐:Flatland
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"font_size": 14.0,
"theme": "Flatland Dark.sublime-theme"
}
#coding=utf-8然后按ctrl + b 就可以运行啦~ 我觉得windows Python安装包的IDLE就很适合,更深入点可以用Vim sublime text啊