PyMuPDF 1.24.2 Documentationdocuments. Please refer to the How to Guide for Text. You can now also extract text in Markdown format. API reference • Page.get_text() 5.3 Extract images from a To extract all the images from a file Release 1.24.2 Note: Taking it further Use this to create the page with another pre-defined paper format: w, h = fitz.paper_size("letter-l") # 'Letter' landscape page = doc.new_page(width = w, height paper_size() to retrieve the paper dimensions. Upper and lower case is supported. If you append “-L” to the format name, the landscape version is returned. Here is a 3-liner that creates a : with one empty page0 码力 | 565 页 | 6.84 MB | 1 年前3
Mypy 1.10.0+dev DocumentationEnabling incomplete/experimental features Miscellaneous The mypy configuration file Config file format Per-module and global options Inverting option values Example mypy.ini Import discovery Platform Using a pyproject.toml file Example pyproject.toml Inline configuration Configuration comment format Mypy daemon (mypy server) Basic usage Daemon client commands Additional daemon flags Static inference in boolean context [truthy-function] Check that string formatting/interpolation is type-safe [str-format] Check for implicit bytes coercions [str-bytes-safe] Check that overloaded functions don’t overlap0 码力 | 318 页 | 270.84 KB | 1 年前3
Mypy 1.8.0 DocumentationEnabling incomplete/experimental features Miscellaneous The mypy configuration file Config file format Per-module and global options Inverting option values Example mypy.ini Import discovery Platform Using a pyproject.toml file Example pyproject.toml Inline configuration Configuration comment format Mypy daemon (mypy server) Basic usage Daemon client commands Additional daemon flags Static inference in boolean context [truthy-function] Check that string formatting/interpolation is type-safe [str-format] Check for implicit bytes coercions [str-bytes-safe] Check that overloaded functions don’t overlap0 码力 | 318 页 | 271.55 KB | 1 年前3
Python 标准库参考指南 2.7.18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556 15.16 errno —Standard errno system symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560 15.17 ctypes —Python 的外部函数库 bool() filter() len() range() type() bytearray() float() list() raw_input() unichr() callable() format() locals() reduce() unicode() chr() frozenset() long() reload() vars() classmethod() getattr() 描述了浮点类型。 format(value[, format_spec]) 将 value 转换为 format_spec 控制的“格式化”表示。format_spec 的解释取决于 value 实参的类型,但是 大多数内置类型使用标准格式化语法:格式规格迷你语言。 注解: format(value, format_spec) merely calls value.__format__(format_spec)0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556 15.16 errno —Standard errno system symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560 15.17 ctypes —Python 的外部函数库 bool() filter() len() range() type() bytearray() float() list() raw_input() unichr() callable() format() locals() reduce() unicode() chr() frozenset() long() reload() vars() classmethod() getattr() 描述了浮点类型。 format(value[, format_spec]) 将 value 转换为 format_spec 控制的“格式化”表示。format_spec 的解释取决于 value 实参的类型,但是 大多数内置类型使用标准格式化语法:格式规格迷你语言。 注解: format(value, format_spec) merely calls value.__format__(format_spec)0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556 15.16 errno —Standard errno system symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560 15.17 ctypes —Python 的外部函数库 bool() filter() len() range() type() bytearray() float() list() raw_input() unichr() callable() format() locals() reduce() unicode() chr() frozenset() long() reload() vars() classmethod() getattr() 描述了浮点类型。 format(value[, format_spec]) 将 value 转换为 format_spec 控制的“格式化”表示。format_spec 的解释取决于 value 实参的类型,但是 大多数内置类型使用标准格式化语法:格式规格迷你语言。 注解: format(value, format_spec) merely calls value.__format__(format_spec)0 码力 | 1552 页 | 7.42 MB | 9 月前3
PyArmor Documentation v8.1.9com/dashingsoft/pyarmor/archive/master.tar.gz] or zip [https://github.com/dashingsoft/pyarmor/archive/master.zip] format. Once downloaded and extracted, these can be installed with pip as above. 1.2.4. Run Pyarmor from cfg in the path .pyarmor: $ mkdir .pyarmor $ vi .pyarmor/message.cfg Then edit it. It’s a .ini format file, change the error messages as needed [runtime.message] error_1 = this license key is expired by length < 10: $ pyarmor cfg mix.str:threshold 10 Exclude any string by regular expression with format /pattern/, the pattern syntax is same as module re. For example, exclude all strings length > 1000:0 码力 | 131 页 | 111.00 KB | 1 年前3
Mypy 1.8.0 Documentationresponsible for the type stubs, or it could be a short explanation of the bug. To do that, use this format: # Starting app on http://localhost:8000 app.run(8000) # type: ignore # `run()` in v2.0 accepts as well. 1.11.4 Limitations Mypy’s analysis is limited to individual symbols and it will not track relationships between symbols. For example, in the following code it’s easy to deduce that if a is None asyncio async def format_string(tag: str, count: int) -> str: return f'T-minus {count} ({tag})' async def countdown(tag: str, count: int) -> str: while count > 0: my_str = await format_string(tag, count)0 码力 | 234 页 | 902.89 KB | 1 年前3
Celery v4.1.0 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ you must remember to include the “@” at the0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery 4.0 Documentationof your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:password@hostname:port/db_number all fields after the scheme are optional, and will port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a Unix socket broker URL: broker_url = 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ you must remember to include the “@” at the0 码力 | 1042 页 | 1.37 MB | 1 年前3
共 528 条
- 1
- 2
- 3
- 4
- 5
- 6
- 53













