杜逸先 Python3 的新特性和改进## Python3的新特性和改进  杭州美登科技 杜逸先 ## 目录 CONTENTS  Python的现状 Python3的新特性和改进 迁移到Python3 问答环节  ## 1 Python的现状 ## Python的现状 Python2.7将于2020年1月1日停止维护 ## Python的现状 [Image](/uploads/documents/7/c/9/f/7c9f44d08e20dffecdcb744d439b4090/p15_2.jpg) ## 2 Python3的新特性和改进 ——重要变化 ## Python3的新特性和改进——重要变化 #### Text Vs. Data Instead Of Unicode Vs. 8-bit ||内容|类型|混合使用| |---|---|---|---|0 码力 | 78 页 | 2.28 MB | 2 年前3
Django 3.1.x Documentationpublisher’s book’s ratings for only those ratings exceeding 3.0. It’s difficult to intuit how the ORM will translate complex querysets into SQL queries so when in doubt, inspect the SQL with str(queryset can avoid the model layer entirely and execute custom SQL directly. Explore the ORM before using raw SQL! The Django ORM provides many tools to express queries without writing raw SQL. For example: • The can create custom query expressions. Before using raw SQL, explore the ORM. Ask on one of the support channels to see if the ORM supports your use case. Warning: You should be very careful whenever you0 码力 | 2053 页 | 6.92 MB | 2 年前3
Django 5.0.x Documentationqueryset. ## Asynchronous queries If you are writing asynchronous views or code, you cannot use the ORM for queries in quite the way we have described above, as you cannot call blocking synchronous code SynchronousOnlyOperation. If you wish to use a transaction, we suggest you write your ORM code inside a separate, synchronous function and then call that using sync_to_async - see Asynchronous publisher’s book’s ratings for only those ratings exceeding 3.0. It’s difficult to intuit how the ORM will translate complex querysets into SQL queries so when in doubt, inspect the SQL with str(queryset0 码力 | 3407 页 | 3.21 MB | 2 年前3
peewee Documentation
Release 3.4.0list of changes. Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. • A small, expressive ORM • Written in python with support for versions answer for other people to find. • Ask on the mailing list, https://groups.google.com/group/peewee-orm 1.5 Query Examples These query examples are taken from the site PostgreSQL Exercises. A sample data-set tsvector when inserting or updating the search_content field: content = 'Excellent blog post about peewee ORM.' blog_entry = Blog.create( content=content, search_content=fn.to_tsvector(content)) Note: If you are0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation
Release 2.0.2Documentation Release 2.0.0 charles leifer April 29, 2014 Powered by TCPDF (www.tcpdf.org) • a small orm • written in python • provides a lightweight querying interface over sql • uses sql concepts when on notes on upgrading and changes from 1.0 ## Contents: ### 1.1 Overview peewee is a lightweight ORM written in python. ## Examples: Examples: # a simple query selecting a user User.get(User.username though, to keep the implementation incredibly simple. I've made a couple dives into Django's orm but have never come away with a deep understanding of its implementation. Peewee is small enough that0 码力 | 65 页 | 315.33 KB | 1 年前3
peewee Documentation Release 3.1.0of changes. Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. • A small, expressive ORM • Written in python with support for versions answer for other people to find. • Ask on the mailing list, https://groups.google.com/group/peewee-orm ## Query Examples These query examples are taken from the site PostgreSQL Exercises [https://pgexercises when inserting or updating the search_content field: content = 'Excellent blog post about peewee ORM.' blog_entry = Blog.create( content=content, search_content=fn.to_tsvector(content) )0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 1.0.0Release 1.0.0 charles leifer January 12, 2013 Powered by TCPDF (www.tcpdf.org) ## CONTENTS • a small orm • written in python • provides a lightweight querying interface over sql • uses sql concepts when and RESTful API, check out flask-peewee. ## CONTENTS: ### 1.1 Overview peewee is a lightweight ORM written in python. Examples: # a simple query selecting a user User.get(username='charles') though, to keep the implementation incredibly simple. I've made a couple dives into Django's orm but have never come away with a deep understanding of its implementation. Peewee is small enough that0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation
Release 3.5.0list of changes. Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. • A small, expressive ORM • Written in python with support for versions answer for other people to find. • Ask on the mailing list, https://groups.google.com/group/peewee-orm 18 Chapter 1. Contents: peewee Documentation, Release 3.5.0 1.5 Database The Peewee Database object tsvector when inserting or updating the search_content field: content = 'Excellent blog post about peewee ORM.' blog_entry = Blog.create( content=content, search_content=fn.to_tsvector(content)) Note: If you are0 码力 | 282 页 | 1.02 MB | 1 年前3
《Slides Dev Web》 03. Laravel
• version 9 publiée 08.02.22, v10 : 07.02.23 ## Principales fonctionnalités • Routes RESTful • ORM (Eloquent, implementation du pattern Active Record) • Migrations • Moteur de templates (Blade) • Architecture ## MVC • Structure d'une appli web = cycle Requête/Response $ ^{9} $ • Modèle : Eloquent ORM • Vue : Blade Engine • Contrôleur : hérite de BaseController ## Pratique • Conventions de codage0 码力 | 8 页 | 224.34 KB | 2 年前3
Laravel 3.2 Documentation84 Inserting Records ..... 84 Updating Records ..... 84 Deleting Records ..... 85 Eloquent ORM ..... 85 The Basics ..... 85 Conventions ..... 86 Retrieving Models ..... 86 Aggregates .. directory or use the "Artisan" command-line tool to automatically install them. - The Eloquent ORM is the most advanced PHP ActiveRecord implementation available. With the capacity to easily apply constraints configuration, routes, migrations, tasks, and more. A bundle could be everything from a database ORM to a robust authentication system. Modularity of this scope is an important aspect that has driven0 码力 | 139 页 | 1.13 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













