Mypy 1.10.0+dev Documentation
def new_user(user_class): user = user_class() # (Here we could write the user object to a database) return user How would we annotate this function? Without the ability to parameterize type represent objects with a fixed schema, such as {'id': 1, 'items': ['x']}. Here is a typical example: movie = {'name': 'Blade Runner', 'year': 1982} Only a fixed set of string keys is expected ('name' and keys are supported. This is clearly not a good fit for movie above. Instead, you can use a TypedDict to give a precise type for objects like movie, where the type of each dictionary value depends on the0 码力 | 318 页 | 270.84 KB | 1 年前3Mypy 1.8.0 Documentation
def new_user(user_class): user = user_class() # (Here we could write the user object to a database) return user How would we annotate this function? Without the ability to parameterize type represent objects with a fixed schema, such as {'id': 1, 'items': ['x']}. Here is a typical example: movie = {'name': 'Blade Runner', 'year': 1982} Only a fixed set of string keys is expected ('name' and keys are supported. This is clearly not a good fit for movie above. Instead, you can use a TypedDict to give a precise type for objects like movie, where the type of each dictionary value depends on the0 码力 | 318 页 | 271.55 KB | 1 年前3CakePHP Cookbook 2.x
Contents Getting Started Blog Tutorial Getting CakePHP Creating the Blog Database CakePHP Database Configuration Optional Configuration A Note on mod_rewrite Blog Tutorial - Adding a layer Create management and migrations I18N shell ACL Shell Test shell Upgrade shell Development Configuration Database Configuration Additional Class Paths Core Configuration Configure Class Reading and writing configuration Using the Debugger Class Using Logging to debug Debug Kit Xdebug Testing Installing PHPUnit Test Database Setup Checking the Test Setup Test Case Conventions Creating Your First Test Case Running Tests0 码力 | 1096 页 | 958.62 KB | 1 年前3Flask Documentation (1.1.x)
Extensions Deploying to a Web Server Tutorial Project Layout Application Setup Define and Access the Database Blueprints and Views Templates Static Files Blog Blueprint Make the Project Installable Test Coverage aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use. Those decisions that it does make, such as what templating engine to use, are easy to change that Flask can be everything you need and nothing you don’t. By default, Flask does not include a database abstraction layer, form validation or anything else where different libraries already exist that0 码力 | 428 页 | 895.98 KB | 1 年前3Django 2.2.x Documentation
views Design your templates This is just the surface Quick install guide Install Python Set up a database Install Django Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing Apache and mod_wsgi Get your database running Install the Django code Models and databases Models Making queries Aggregation Search Managers Performing raw SQL queries Database transactions Multiple databases0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 2.1.x Documentation
views Design your templates This is just the surface Quick install guide Install Python Set up a database Install Django Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing Apache and mod_wsgi Get your database running Install the Django code Models and databases Models Making queries Aggregation Search Managers Performing raw SQL queries Database transactions Multiple databases0 码力 | 2790 页 | 2.71 MB | 1 年前3Django 2.0.x Documentation
views Design your templates This is just the surface Quick install guide Install Python Set up a database Remove any old versions of Django Install Django Verifying That’s it! Writing your first Django development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing Get your database running Remove any old versions of Django Install the Django code Models and databases Models Making queries Aggregation Search Managers Performing raw SQL queries Database transactions0 码力 | 2746 页 | 2.67 MB | 1 年前3Django 4.2.x Documentation
views Design your templates This is just the surface Quick install guide Install Python Set up a database Install Django Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing Apache and mod_wsgi Get your database running Install the Django code Models and databases Models Making queries Aggregation Search Managers Performing raw SQL queries Database transactions Multiple databases0 码力 | 3305 页 | 3.16 MB | 1 年前3Django 5.1 Documentation
views Design your templates This is just the surface Quick install guide Install Python Set up a database Install Django Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing Apache and mod_wsgi Get your database running Install the Django code Models and databases Models Making queries Aggregation Search Managers Performing raw SQL queries Database transactions Multiple databases0 码力 | 3513 页 | 3.17 MB | 1 年前3Django 5.1.2 Documentation
views Design your templates This is just the surface Quick install guide Install Python Set up a database Install Django Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing Apache and mod_wsgi Get your database running Install the Django code Models and databases Models Making queries Aggregation Search Managers Performing raw SQL queries Database transactions Multiple databases0 码力 | 3519 页 | 3.17 MB | 1 年前3
共 561 条
- 1
- 2
- 3
- 4
- 5
- 6
- 57