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 request includes arguments your parser does not define. args = parser.parse_args(strict=True) Data Formatting By default, all fields in your return iterable will be rendered as-is. While this works great Multiple argument locations can be specified by passing a list to location: parser.add_argument('text', location=['headers', 'values']) When multiple locations are specified, the arguments from all locations0 码力 | 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 request includes arguments your parser does not define. args = parser.parse_args(strict=True) Data Formatting By default, all fields in your return iterable will be rendered as-is. While this works great Multiple argument locations can be specified by passing a list to location: parser.add_argument('text', location=['headers', 'values']) When multiple locations are specified, the arguments from all locations0 码力 | 55 页 | 93.21 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.7includes arguments your parser does not define. args = parser.parse_args(strict=True) 1.2.5 Data Formatting By default, all fields in your return iterable will be rendered as-is. While this works great Multiple argument locations can be specified by passing a list to location: parser.add_argument('text', location=['headers', 'values']) When multiple locations are specified, the arguments from all locations 'address': fields.String, } 1.4.4 Custom Fields & Multiple Values Sometimes you have your own custom formatting needs. You can subclass the fields.Raw class and implement the format function. This is especially0 码力 | 50 页 | 253.09 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.8includes arguments your parser does not define. args = parser.parse_args(strict=True) 1.2.5 Data Formatting By default, all fields in your return iterable will be rendered as-is. While this works great Multiple argument locations can be specified by passing a list to location: parser.add_argument('text', location=['headers', 'values']) When multiple locations are specified, the arguments from all locations 'address': fields.String, } 1.4.4 Custom Fields & Multiple Values Sometimes you have your own custom formatting needs. You can subclass the fields.Raw class and implement the format function. This is especially0 码力 | 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 request includes arguments your parser does not define. args = parser.parse_args(strict=True) Data Formatting By default, all fields in your return iterable will be rendered as-is. While this works great Multiple argument locations can be specified by passing a list to location: parser.add_argument('text', location=['headers', 'values']) When multiple locations are specified, the arguments from all locations0 码力 | 49 页 | 91.90 KB | 1 年前3
Scrapy 2.4 Documentationyield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text').get(), } next_page = response.css('li.next a::attr("href")') if next_page is not None: yield response.follow(next_page, self.parse) Put this in a text file, name it to something like quotes_spider.py and run the spider using the runspider command: quotes.jl file a list of the quotes in JSON Lines format, containing text and author, looking like this: {"author": "Jane Austen", "text": "\u201cThe person, be it gentleman or lady, who has not pleasure0 码力 | 445 页 | 668.06 KB | 1 年前3
Python 标准库参考指南 2.7.18 —终端字符单元显示的处理 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534 15.12 curses.textpad —Text input widget for curses programs . . . . . . . . . . . . . . . . . . . . . 551 15.13 curses.ascii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1079 24.4 ScrolledText —Scrolled Text Widget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1084 24.5 turtle —Turtle graphics regardless of the current seek position). If mode is omitted, it defaults to 'r'. The default is to use text mode, which may convert '\n' characters to a platform-specific representation on writing and back0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 —终端字符单元显示的处理 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534 15.12 curses.textpad —Text input widget for curses programs . . . . . . . . . . . . . . . . . . . . . 551 15.13 curses.ascii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1079 24.4 ScrolledText —Scrolled Text Widget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1084 24.5 turtle —Turtle graphics regardless of the current seek position). If mode is omitted, it defaults to 'r'. The default is to use text mode, which may convert '\n' characters to a platform-specific representation on writing and back0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 —终端字符单元显示的处理 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534 15.12 curses.textpad —Text input widget for curses programs . . . . . . . . . . . . . . . . . . . . . 551 15.13 curses.ascii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1079 24.4 ScrolledText —Scrolled Text Widget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1084 24.5 turtle —Turtle graphics regardless of the current seek position). If mode is omitted, it defaults to 'r'. The default is to use text mode, which may convert '\n' characters to a platform-specific representation on writing and back0 码力 | 1552 页 | 7.42 MB | 9 月前3
Scrapy 2.4 Documentationquote in response.css('div.quote'): yield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text').get(), } next_page = response.css('li.next a::attr("href")').get() if next_page next_page is not None: yield response.follow(next_page, self.parse) Put this in a text file, name it to something like quotes_spider.py and run the spider using the runspider command: scrapy runspider quotes.jl file a list of the quotes in JSON Lines format, containing text and author, looking like this: {"author": "Jane Austen", "text": "\u201cThe person, be it gentleman or lady, who has ˓→not pleasure0 码力 | 354 页 | 1.39 MB | 1 年前3
共 498 条
- 1
- 2
- 3
- 4
- 5
- 6
- 50













