Skip to Content
Flask Web开发:基于Python的Web应用开发实战(第2版)
book

Flask Web开发:基于Python的Web应用开发实战(第2版)

by Miguel Grinberg
August 2018
Intermediate to advanced
230 pages
6h 42m
Chinese
O'Reilly Media, Inc. Beijing
Content preview from Flask Web开发:基于Python的Web应用开发实战(第2版)
前言
xiii
如何使用示例代码
本书使用的示例代码可从
GitHub
上下载
1
https://github.com/miguelgrinberg/flasky
这个仓库的提交历史是精心设计的,与本书介绍的功能顺序一致。使用这份代码时,我建
议你从最早的提交开始,跟随本书内容的进度,向前推移提交列表。另外,你还可以从
GitHub
上下载每次提交代码后得到的
ZIP
TAR
文件。
如果你决定使用
Git
操作源码,那么首先要安装
Git
客户端(可以从
http://git-scm.com/
载)。使用
Git
下载本书示例代码的命令如下:
$
git clone https://github.com/miguelgrinberg/flasky.git
git clone
命令从
GitHub
上下载源码,安装到当前目录下的
flasky
文件夹中。这个文件夹
中不仅有源码,还有一个包含应用完整修改历史的
Git
仓库。
1
章会要求你
检出
应用的初始发布版本,然后在适当的时候再指示你向前推进查看提交
历史。切换提交历史的
Git
命令是
git checkout
。下面举个例子:
$
git checkout 1a
上述命令中的
1a
代表一个
标签
tag
),是项目中某次提交历史的名称。这个仓库的标签根
据本书的章节命名,因此本例中的
1a
表示第
1
章使用的初始版本。大多数章都不止使用
一个标签,例如
5a
5b
等分别对应第
5
章中用到的不同版本。
执行上述
git checkout
命令后,
Git
会显示一个提醒消息,指出你在“孤立的
HEAD
”状
态。这表明你不在能接受新提交的代码分支上 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习基础教程

Python机器学习基础教程

Andreas C. Müller, Sarah Guido
Python编程入门与实战

Python编程入门与实战

Posts & Telecom Press, Fabrizio Romano
程序设计导论:Python语言实践

程序设计导论:Python语言实践

罗伯特 塞奇威克, 凯文 韦恩, 罗伯特 唐德罗

Publisher Resources

ISBN: 9787115489456