Python 标准库参考指南 2.7.18
create the values when asked for them) except when a very large range is used on a memory-starved machine or when all of the range’s elements are never used (such as when the loop is usually terminated with C; information about the precision and internal representation of floating point numbers for the machine on which your program is running is available in sys.float_info. Complex numbers have a real and been mapped through the given translation table, which must be a string of length 256. You can use the maketrans() helper function in the string module to create a translation table. For string objects,0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
create the values when asked for them) except when a very large range is used on a memory-starved machine or when all of the range’s elements are never used (such as when the loop is usually terminated with C; information about the precision and internal representation of floating point numbers for the machine on which your program is running is available in sys.float_info. Complex numbers have a real and been mapped through the given translation table, which must be a string of length 256. You can use the maketrans() helper function in the string module to create a translation table. For string objects,0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
create the values when asked for them) except when a very large range is used on a memory-starved machine or when all of the range’s elements are never used (such as when the loop is usually terminated with C; information about the precision and internal representation of floating point numbers for the machine on which your program is running is available in sys.float_info. Complex numbers have a real and been mapped through the given translation table, which must be a string of length 256. You can use the maketrans() helper function in the string module to create a translation table. For string objects,0 码力 | 1552 页 | 7.42 MB | 9 月前3Celery 1.0 Documentation
the architecture. The broker pushes tasks to the worker servers. A worker server is a networked machine running celeryd. This can be one or more machines, depending on the workload. The result of the blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name"), max_length=64) pdf State Since celery is a distributed system, you can’t know in which process, or even on what machine the task will run. Indeed you can’t even know if the task will run in a timely manner, so please0 码力 | 123 页 | 400.69 KB | 1 年前3Celery 1.0 Documentation
-Overview-v4.jpg The broker pushes tasks to the worker servers. A worker server is a networked machine running celeryd. This can be one or more machines, depending on the workload. The result of the blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name"), pdf State Since celery is a distributed system, you can’t know in which process, or even on what machine the task will run. Indeed you can’t even know if the task will run in a timely manner, so please0 码力 | 221 页 | 283.64 KB | 1 年前3Django 2.2.x Documentation
utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are run Built-in validators Built-in Views Serving holds. The name of each Field instance (e.g. question_text or pub_date) is the field’s name, in machine-friendly format. You’ll use this value in your Python code, and your database will use it as the Django will use the machine- readable name. In this example, we’ve only defined a human-readable name for Question.pub_date. For all other fields in this model, the field’s machine-readable name will suffice0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 1.11.x Documentation
utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are run Built-in validators Built-in Views Serving holds. The name of each Field instance (e.g. question_text or pub_date) is the field’s name, in machine-friendly format. You’ll use this value in your Python code, and your database will use it as the Django will use the machine- readable name. In this example, we’ve only defined a human-readable name for Question.pub_date. For all other fields in this model, the field’s machine-readable name will suffice0 码力 | 2747 页 | 2.67 MB | 1 年前3Django 1.10.x Documentation
utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are run Built-in validators Built-in Views Serving holds. The name of each Field instance (e.g. question_text or pub_date) is the field’s name, in machine-friendly format. You’ll use this value in your Python code, and your database will use it as the Django will use the machine- readable name. In this example, we’ve only defined a human-readable name for Question.pub_date. For all other fields in this model, the field’s machine-readable name will suffice0 码力 | 2538 页 | 2.59 MB | 1 年前3Django 1.11.x Documentation
holds. The name of each Field instance (e.g. question_text or pub_date) is the field’s name, in machine-friendly format. You’ll use this value in your Python code, and your database will use it as the Django will use the machine-readable name. In this example, we’ve only defined a human-readable name for Question. pub_date. For all other fields in this model, the field’s machine-readable name will suffice dev20200305075726 Since translation is turned on by default, the login screen may be displayed in your own language, depending on your browser’s settings and if Django has a translation for this language.0 码力 | 1878 页 | 6.40 MB | 1 年前3Django 1.10.x Documentation
holds. The name of each Field instance (e.g. question_text or pub_date) is the field’s name, in machine-friendly format. You’ll use this value in your Python code, and your database will use it as the Django will use the machine-readable name. In this example, we’ve only defined a human-readable name for Question. pub_date. For all other fields in this model, the field’s machine-readable name will suffice login screen: Since translation is turned on by default, the login screen may be displayed in your own language, depending on your browser’s settings and if Django has a translation for this language.0 码力 | 1817 页 | 6.19 MB | 1 年前3
共 321 条
- 1
- 2
- 3
- 4
- 5
- 6
- 33