MuPDF 1.22.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); fz_try(ctx) (continues need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 2.4 Multi-threading First off, study the basic usage example in docs/examples/example.c0 码力 | 175 页 | 698.87 KB | 7 月前3MuPDF 1.23.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); fz_try(ctx) (continues need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 2.4 Multi-threading First off, study the basic usage example in docs/examples/example.c0 码力 | 245 页 | 817.74 KB | 7 月前3MuPDF 1.25.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); (continues on next need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 10 Chapter 2. Using MuPDF with C MuPDF Documentation, Release 1.25.0 2.4 Multi-threading0 码力 | 259 页 | 1.11 MB | 7 月前3MuPDF 1.24.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); (continues on next need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 10 Chapter 2. Using MuPDF with C MuPDF Documentation, Release 1.24.0 2.4 Multi-threading0 码力 | 249 页 | 830.15 KB | 7 月前3Python 标准库参考指南 2.7.18
bytearray() then converts the unicode to bytes using unicode.encode(). • 如果是一个 integer,会初始化大小为该数字的数组,并使用 null 字节填充。 • 如果是一个符合 buffer 接口的对象,该对象的只读 buffer 会用来初始化字节数组。 • 如果是一个 iterable 可迭代对象,它的元素的范围必须是 0 <= x function raises SyntaxError if the compiled source is invalid, and TypeError if the source contains null bytes. 如果您想分析 Python 代码的 AST 表示,请参阅ast.parse()。 注解: 在 'single' 或 'eval' 模式编译多行代码字符串时,输入必须以至少一个换行符结尾。这 are interned, and the lookup key is interned, the key comparisons (after hashing) can be done by a pointer compare instead of a string compare. Normally, the names used in Python programs are automatically0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
bytearray() then converts the unicode to bytes using unicode.encode(). • 如果是一个 integer,会初始化大小为该数字的数组,并使用 null 字节填充。 • 如果是一个符合 buffer 接口的对象,该对象的只读 buffer 会用来初始化字节数组。 • 如果是一个 iterable 可迭代对象,它的元素的范围必须是 0 <= x function raises SyntaxError if the compiled source is invalid, and TypeError if the source contains null bytes. 如果您想分析 Python 代码的 AST 表示,请参阅ast.parse()。 注解: 在 'single' 或 'eval' 模式编译多行代码字符串时,输入必须以至少一个换行符结尾。这 are interned, and the lookup key is interned, the key comparisons (after hashing) can be done by a pointer compare instead of a string compare. Normally, the names used in Python programs are automatically0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
bytearray() then converts the unicode to bytes using unicode.encode(). • 如果是一个 integer,会初始化大小为该数字的数组,并使用 null 字节填充。 • 如果是一个符合 buffer 接口的对象,该对象的只读 buffer 会用来初始化字节数组。 • 如果是一个 iterable 可迭代对象,它的元素的范围必须是 0 <= x function raises SyntaxError if the compiled source is invalid, and TypeError if the source contains null bytes. 如果您想分析 Python 代码的 AST 表示,请参阅ast.parse()。 注解: 在 'single' 或 'eval' 模式编译多行代码字符串时,输入必须以至少一个换行符结尾。这 are interned, and the lookup key is interned, the key comparisons (after hashing) can be done by a pointer compare instead of a string compare. Normally, the names used in Python programs are automatically0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 3.6.15
参数(errors 参数仍是可选的);bytearray() 会使 用str.encode() 方法来将 string 转变成 bytes。 • 如果是一个 integer,会初始化大小为该数字的数组,并使用 null 字节填充。 • 如果是一个符合 buffer 接口的对象,该对象的只读 buffer 会用来初始化字节数组。 • 如果是一个 iterable 可迭代对象,它的元素的范围必须是 0 <= x 0(没有优化;__debug__ 为真)、1(断言被删除,__debug__ 为假)或 2(文档字符串也被删除)。 如果编译的源码不合法,此函数会触发SyntaxError 异常;如果源码包含 null 字节,则会触 发ValueError 异常。 7 The Python Library Reference, 发布 3.6.15 如果您想分析 Python 代码的 AST 表示,请参阅ast 3.2 版更改: 允许使用 Windows 和 Mac 的换行符。在 'exec' 模式不再需要以换行符结尾。增加了 optimize 形参。 在 3.5 版更改: 之前 source 中包含 null 字节的话会触发TypeError 异常。 class complex([real[, imag]]) 返回值为 real + imag*1j 的复数,或将字符串或数字转换为复数。如果第一个形参是字符串,则它被解0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.6.15
参数(errors 参数仍是可选的);bytearray() 会使 用str.encode() 方法来将 string 转变成 bytes。 • 如果是一个 integer,会初始化大小为该数字的数组,并使用 null 字节填充。 • 如果是一个符合 buffer 接口的对象,该对象的只读 buffer 会用来初始化字节数组。 • 如果是一个 iterable 可迭代对象,它的元素的范围必须是 0 <= x 0(没有优化;__debug__ 为真)、1(断言被删除,__debug__ 为假)或 2(文档字符串也被删除)。 如果编译的源码不合法,此函数会触发SyntaxError 异常;如果源码包含 null 字节,则会触 发ValueError 异常。 7 The Python Library Reference, 发布 3.6.15 如果您想分析 Python 代码的 AST 表示,请参阅ast 3.2 版更改: 允许使用 Windows 和 Mac 的换行符。在 'exec' 模式不再需要以换行符结尾。增加了 optimize 形参。 在 3.5 版更改: 之前 source 中包含 null 字节的话会触发TypeError 异常。 class complex([real[, imag]]) 返回值为 real + imag*1j 的复数,或将字符串或数字转换为复数。如果第一个形参是字符串,则它被解0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.7.13
参数(errors 参数仍是可选的);bytearray() 会使 用str.encode() 方法来将 string 转变成 bytes。 • 如果是一个 integer,会初始化大小为该数字的数组,并使用 null 字节填充。 • 如果是一个符合 buffer 接口的对象,该对象的只读 buffer 会用来初始化字节数组。 • 如果是一个 iterable 可迭代对象,它的元素的范围必须是 0 <= x (文档字符串 也被删除)。 7 The Python Library Reference, 发布 3.7.13 如果编译的源码不合法,此函数会触发SyntaxError 异常;如果源码包含 null 字节,则会触 发ValueError 异常。 如果您想分析 Python 代码的 AST 表示,请参阅ast.parse()。 注解: 在 'single' 或 'eval' 模式编译多行代 3.2 版更改: 允许使用 Windows 和 Mac 的换行符。在 'exec' 模式不再需要以换行符结尾。增加 了 optimize 形参。 在 3.5 版更改: 之前 source 中包含 null 字节的话会触发TypeError 异常。 class complex([real[, imag]]) 返回值为 real + imag*1j 的复数,或将字符串或数字转换为复数。如果第一个形参是字符串,则它被0 码力 | 1846 页 | 9.09 MB | 9 月前3
共 387 条
- 1
- 2
- 3
- 4
- 5
- 6
- 39