Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

learn python~

License

NotificationsYou must be signed in to change notification settings

python2014/python-learn

 
 

Repository files navigation

sublime插件

  • SublimeREPL 允许你在编辑界面直接运行 Python 解释器;以及执行python文件。

一些概念

缩进

不要混合使用制表符和空格来缩进,因为这在跨越不同的平台的时候,无法正常工作。我 强烈建议 你在每个缩进层次使用 单个制表符 或 两个或四个空格 。选择这三种缩进风格之一。更加重要的是,选择一种风格,然后一贯地使用它,即 只 使用这一种风格。

代码规范

学习资源

中文资源

英文资源

邮件订阅

在sublime中运行python

“Preference(首选项)”-----》“Browse Packages(浏览程序包)”----------》“python”,在打开的目录中修改Python.sublime-build文件类似如下

{    "cmd": ["python", "-u", "$file"],    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",    "selector": "source.python"}

然后,Python文件就可以ctrl/Command + b来运行

包管理

可以使用pip进行包管理。

  1. 项目根路径下创建requirements.txt
  2. 内容类似例如
MyAppFramework==0.9.4Library>=0.2
  1. 然后执行pip install -r requirements.txt

具体产看https://pip.readthedocs.org/en/1.1/requirements.html

python版本管理

virtualenv

自动化远程部署项目

About

learn python~

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python100.0%

[8]ページ先頭

©2009-2025 Movatter.jp