sixu05202004 / the-flask-mega-tutorial Goto Github PK
View Code? Open in Web Editor NEWflask入门的教程
flask入门的教程
首先感谢作者的翻译。我今天在看到用户登录(User Login)这一章时,见下面对User类的is_anonymous方法的说明是“is_anonymous 方法应该返回 True,除非是伪造的用户不允许登录系统。”,然而代码中返回的是False,感觉有些疑惑,因此找了原文看了下,原文是这么说的:“The is_anonymous property should return True only for fake users that are not supposed to log in to the system.”,因此中文这个地方的翻译可能是弄反了,应该是只对不希望其登录系统的伪造用户返回True。
另外说下之前章节里面的代码对python3兼容的问题,print由命令改为函数因此要加括号就不用我多说了,主要是之前看到数据库迁移代码里面用到了exec xxx in yyy这样的语句,自己试着加括号怎么也弄不对,后来去网上搜了下才发现要改成exec(xxx,yyy)的形式才对,希望作者可以在这里稍微加两句说明一下python3里面的写法,方便其他读者。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.