杜逸先 使用 VS Code 开发 Python 项目的最佳实践使用VS Code进行Python开发 的最佳实践 杭州美登科技 杜逸先 目录 CONTENTS 什么是VS Code VS Code与Python 最佳实践 提问时间 什么是VS Code 什么是VS Code 什么是VS Code 什么是VS Code 1. 开源+跨平台 2. 轻量级+丰富的插件生态 3. 开箱即用+高度自定义(颜色主题、按键绑定、版本控制工具等) VS Code与Python VS Code与Python VS Code与Python——Autocomplete and IntelliSense VS Code与Python——Autocomplete and IntelliSense VS Code与Python——Refactoring(Extract Variable) VS Code与Python——Refactoring(Extract Method) VS Code与Python——Refactoring(Sort imports) VS Code与Python——Linting VS Code与Python——Linting VS Code与Python——Formatting VS Code与Python——Formatting VS Code与Python——Debugging VS Code与Python——Debugging0 码力 | 46 页 | 2.65 MB | 1 年前3
1 Python在Azure Notebook产品发展中的核心地位 以及通过Visual Studio Code的最佳Azure实践 韩骏Python 与 Visual Studio Code 在 人工智能应用中的最佳 Azure 实践 韩骏@formulahendry 自我介绍 • 微软研发工程师 @ Visual Studio China • IoT • VS Code • VS Code 代码贡献者 • 多款 VS Code 插件作者 • “玩转VS Code”知乎专栏 & 微信公众号作者 https://zhuanlan https://zhuanlan.zhihu.com/vs-code • https://github.com/formulahendry/955.WLB • Speaker @ 2018 微软技术暨生态大会 • CodeLab @ Google Developer Group • Speaker @ 2019 GitHub 中国官方见面会 我开发的插件 Python 与人工智能 “Python的快速发展的一个主要增 Stack Overflow 2019 开发者调查 Visual Studio Code • 开源 • 跨平台 • 轻量级 • 智能提示 (IntelliSense) • 代码调试 • 内置 Git 支持 • 多语言支持 • 丰富的插件 VS Code 最热门的插件是? 官宣!全球首秀 Visual Studio Code Python 插 件将提供 Jupyter Notebook 的原生支持0 码力 | 55 页 | 14.99 MB | 1 年前3
Flask-RESTful Documentation Release 0.3.8Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required Arguments Multiple Values & Lists Other we’ve enabled Flask debugging [http://flask.pocoo.org/docs/quickstart/#debug-mode] mode to provide code reloading and better error messages. $ python api.py * Running on http://127.0.0.1:5000/ * Restarting a response, including raw Flask response objects. Flask-RESTful also support setting the response code and response headers using multiple return values, as shown below: class Todo1(Resource): def0 码力 | 55 页 | 93.30 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.7Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required Arguments Multiple Values & Lists Other we’ve enabled Flask debugging [http://flask.pocoo.org/docs/quickstart/#debug-mode] mode to provide code reloading and better error messages. $ python api.py * Running on http://127.0.0.1:5000/ * Restarting a response, including raw Flask response objects. Flask-RESTful also support setting the response code and response headers using multiple return values, as shown below: class Todo1(Resource): def0 码力 | 55 页 | 93.21 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.7and run it using your Python interpreter. Note that we’ve enabled Flask debugging mode to provide code reloading and better error messages. $ python api.py * Running on http://127.0.0.1:5000/ * Restarting a response, including raw Flask response objects. Flask-RESTful also support setting the response code and response headers using multiple return values, as shown below: class Todo1(Resource): def get(self): Todo2(Resource): def get(self): # Set the response code to 201 return {'task': 'Hello world'}, 201 class Todo3(Resource): def get(self): # Set the response code to 201 and return custom headers return {'task':0 码力 | 50 页 | 253.09 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.8and run it using your Python interpreter. Note that we’ve enabled Flask debugging mode to provide code reloading and better error messages. $ python api.py * Running on http://127.0.0.1:5000/ * Restarting a response, including raw Flask response objects. Flask-RESTful also support setting the response code and response headers using multiple return values, as shown below: class Todo1(Resource): def get(self): Todo2(Resource): def get(self): # Set the response code to 201 return {'task': 'Hello world'}, 201 class Todo3(Resource): def get(self): # Set the response code to 201 and return custom headers return {'task':0 码力 | 50 页 | 253.64 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.6Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required Arguments Multiple Values & Lists Other we’ve enabled Flask debugging [http://flask.pocoo.org/docs/quickstart/#debug-mode] mode to provide code reloading and better error messages. $ python api.py * Running on http://127.0.0.1:5000/ * Restarting a response, including raw Flask response objects. Flask-RESTful also support setting the response code and response headers using multiple return values, as shown below: class Todo1(Resource): def0 码力 | 49 页 | 91.90 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.6and run it using your Python interpreter. Note that we’ve enabled Flask debugging mode to provide code reloading and better error messages. $ python api.py * Running on http://127.0.0.1:5000/ * Restarting a response, including raw Flask response objects. Flask-RESTful also support setting the response code and response headers using multiple return values, as shown below: class Todo1(Resource): def get(self): Todo2(Resource): def get(self): # Set the response code to 201 return {'task': 'Hello world'}, 201 class Todo3(Resource): def get(self): # Set the response code to 201 and return custom headers return {'task':0 码力 | 46 页 | 245.60 KB | 1 年前3
Scrapy 2.4 Documentationwebsites. Selectors Extract the data from web pages using XPath. Scrapy shell Test your extraction code in an interactive environment. Items Define the data you want to scrape. Item Loaders Populate walk you through an example of a Scrapy Spider using the simplest way to run a spider. Here’s the code for a spider that scrapes famous quotes from website http://quotes.toscrape.com, following the pagination: scraping, you will have to set up a new Scrapy project. Enter a directory where you’d like to store your code and run: scrapy startproject tutorial This will create a tutorial directory with the following contents:0 码力 | 445 页 | 668.06 KB | 1 年前3
Python 标准库参考指南 2.7.18 control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1262 29 自定义 Python 解释器 1265 29.1 code —解释器基础类 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1265 29 are callable if they have a __call__() method. chr(i) Return a string of one character whose ASCII code is the integer i. For example, chr(97) returns the string 'a'. This is the inverse of ord(). The argument y. compile(source, filename, mode[, flags[, dont_inherit]]) Compile the source into a code or AST object. Code objects can be executed by an exec statement or evaluated by a call to eval(). source can0 码力 | 1552 页 | 7.42 MB | 10 月前3
共 562 条
- 1
- 2
- 3
- 4
- 5
- 6
- 57













