Django 1.10.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.10 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated admin0 码力 | 1817 页 | 6.19 MB | 1 年前3
Django 1.10.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.10 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated admin0 码力 | 2538 页 | 2.59 MB | 1 年前3
Django 1.8.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.8 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. 2.3. Writing your first Django app, part 1 15 Django Documentation, Release 1.8.20.dev20180306181007 __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated0 码力 | 1685 页 | 6.01 MB | 1 年前3
Django 1.8.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.8 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. If you’re using SQLite, you don’t need to create anything beforehand - the database file will be __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated admin0 码力 | 2454 页 | 2.85 MB | 1 年前3
Flask Documentation (1.1.x)corresponding environment: $ . venv/bin/activate On Windows: > venv\Scripts\activate Your shell prompt will change to show the name of the activated environment. Install Flask Within the activated environment you are on Windows, the environment variable syntax depends on command line interpreter. On Command Prompt: C:\path\to\app>set FLASK_APP=hello.py And on PowerShell: PS C:\path\to\app> $env:FLASK_APP = don’t keep that in mind, some people might be able to trick your application’s users with social engineering to do stupid things without them knowing. Say you have a specific URL that, when you sent POST0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)corresponding environment: $ . venv/bin/activate On Windows: > venv\Scripts\activate Your shell prompt will change to show the name of the activated environment. 1.3.4 Install Flask Within the activated you are on Windows, the environment variable syntax depends on command line interpreter. On Command Prompt: C:\path\to\app>set FLASK_APP=hello.py And on PowerShell: PS C:\path\to\app> $env:FLASK_APP = don’t keep that in mind, some people might be able to trick your application’s users with social engineering to do stupid things without them knowing. 3.3. Security Considerations 239 Flask Documentation0 码力 | 291 页 | 1.25 MB | 1 年前3
9 盛泳潘 When Knowledge Graph meet Python 所以,通俗的来说,在AI system中:要么从原有的知识体系中直接提取信息来使用,要 么进行推理。 将知识融合在机器中,使机器能够利用我们人类知识、专家知识解决问题,这就是早期 知识工程(Knowledge Engineering)的核心内涵。 Preliminaries Explaining AI system from the perspective of KE – Symbolism AI System0 码力 | 57 页 | 1.98 MB | 1 年前3
Python 标准库参考指南 2.7.18 CPython implementation detail: This is the address of the object in memory. input([prompt]) Equivalent to eval(raw_input(prompt)). This function does not catch user errors. If the input is not syntactically (下页继续) 17 The Python Library Reference, 发布 2.7.18 (续上页) >>> range(1, 0) [] raw_input([prompt]) If the prompt argument is present, it is written to standard output without a trailing newline. The function Set(['Jane', 'Jack', 'Susan', 'Zack']) >>> employees = engineers | programmers | managers # union >>> engineering_management = engineers & managers # intersection >>> fulltime_management = managers - engineers0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 CPython implementation detail: This is the address of the object in memory. input([prompt]) Equivalent to eval(raw_input(prompt)). This function does not catch user errors. If the input is not syntactically (下页继续) 17 The Python Library Reference, 发布 2.7.18 (续上页) >>> range(1, 0) [] raw_input([prompt]) If the prompt argument is present, it is written to standard output without a trailing newline. The function Set(['Jane', 'Jack', 'Susan', 'Zack']) >>> employees = engineers | programmers | managers # union >>> engineering_management = engineers & managers # intersection >>> fulltime_management = managers - engineers0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 CPython implementation detail: This is the address of the object in memory. input([prompt]) Equivalent to eval(raw_input(prompt)). This function does not catch user errors. If the input is not syntactically (下页继续) 17 The Python Library Reference, 发布 2.7.18 (续上页) >>> range(1, 0) [] raw_input([prompt]) If the prompt argument is present, it is written to standard output without a trailing newline. The function Set(['Jane', 'Jack', 'Susan', 'Zack']) >>> employees = engineers | programmers | managers # union >>> engineering_management = engineers & managers # intersection >>> fulltime_management = managers - engineers0 码力 | 1552 页 | 7.42 MB | 9 月前3
共 325 条
- 1
- 2
- 3
- 4
- 5
- 6
- 33













