MuPDF 1.23.0 Documentation
of the process of throwing that excep- tion. As a way of mitigating this problem, we provide a fz_var() macro that tells the compiler to ensure that that variable is not unset by the act of throwing the 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 on next page) 2.3. Error handling 9 MuPDF Documentation, level exception handler. If it succeeds, t will be set before fz_try starts, so there is no need to fz_var(t);. We try first off to make some bricks as our building material. If this fails, we fall back to0 码力 | 245 页 | 817.74 KB | 7 月前3MuPDF 1.25.0 Documentation
of the process of throwing that excep- tion. As a way of mitigating this problem, we provide a fz_var() macro that tells the compiler to ensure that that variable is not unset by the act of throwing the 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 page) 2.3. Error handling 9 MuPDF Documentation, Release 1.25 level exception handler. If it succeeds, t will be set before fz_try starts, so there is no need to fz_var(t);. We try first off to make some bricks as our building material. If this fails, we fall back to0 码力 | 259 页 | 1.11 MB | 7 月前3MuPDF 1.24.0 Documentation
of the process of throwing that excep- tion. As a way of mitigating this problem, we provide a fz_var() macro that tells the compiler to ensure that that variable is not unset by the act of throwing the 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 page) 2.3. Error handling 9 MuPDF Documentation, Release 1.24 level exception handler. If it succeeds, t will be set before fz_try starts, so there is no need to fz_var(t);. We try first off to make some bricks as our building material. If this fails, we fall back to0 码力 | 249 页 | 830.15 KB | 7 月前3MuPDF 1.22.0 Documentation
of the process of throwing that excep- tion. As a way of mitigating this problem, we provide a fz_var() macro that tells the compiler to ensure that that variable is not unset by the act of throwing the 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 on next page) 2.3. Error handling 9 MuPDF Documentation, level exception handler. If it succeeds, t will be set before fz_try starts, so there is no need to fz_var(t);. We try first off to make some bricks as our building material. If this fails, we fall back to0 码力 | 175 页 | 698.87 KB | 7 月前3Objeet Oriented Python Tutorial
class Observe the following piece of code for example: var = “Hello, John” print( type (var)) # < type ‘str’> orprint(var.upper()) # upper() method is called, HELLO, JOHN Creation MyClass(object): var = 9 # Create first instance of MyClass this_obj = MyClass() print(this_obj.var) # Another instance of MyClass that_obj = MyClass() print (that_obj.var) Output You naming convention. class MyClass(object): var=9 def firstM(self): print("hello, World") obj = MyClass() print(obj.var) obj.firstM() OOP in Python 31 Output 0 码力 | 111 页 | 3.32 MB | 1 年前3python3学习手册
decode("u�8") 方法转为string ★global全局变量 global_var_xx = 1 def func_xx(): global global_var_xx # 在函数中使用全局变量,否则函数内 的变量会被认为是局部变量 global_var_xx = 2 # to do ★类型提示 类型提示是Python3.5引入的一种新特性,用于在代码中指定变量的类 def func( *var ): #参数以tuple形式传入,var为tuple #或者传参数时直接传入多个值,以逗号,隔开 #若传入的变量为tuple时,不带*号则表示只有一个参数,就是tuple本 身, 带*号则表示把tuple解开,变成多个参数,每个元素为一个参数 ②定长参数加不定长参数 def func( var1, var2, *var_args_tuple): *var_args_tuple): #前面2个为固定参数,后面可传入若干个可选参数,调用函数时,不 可省略前面的定参 ③默认参数 def func(var1, var2=10, var3=40): #调用时若未传入参数var2和var3,则使用默认值10,40 ④解构传入tuple/dict参数 def func_test(*tuple_xx, **dict_xx): print(tuple_xx)0 码力 | 213 页 | 3.53 MB | 1 年前3Jupyter Notebook 6.5.1 Documentation
set_autosave_interval(milliseconds) • know that 1 min = 60 sec, and 1 sec = 1000 ms var label = jQuery('').text('AutoScroll Limit:'); var select = jQuery('') //.append(jQuery('').attr('value' { var val = jQuery(this).val() // val will be the value in [2] // TODO // this will be called when dropdown changes }); var time_m = [1,5,10,15,30]; for (var i=0; i < time_m.length; i++) { var ts = %%javascript var CellToolbar = Jupyter.CellToolbar var toggle = function(div, cell) { var button_container = $(div) // let's create a button that shows the current value of the metadata var button = $('')0 码力 | 191 页 | 1.88 MB | 1 年前3Jupyter Notebook 6.5.0 Documentation
set_autosave_interval(milliseconds) • know that 1 min = 60 sec, and 1 sec = 1000 ms var label = jQuery('').text('AutoScroll Limit:'); var select = jQuery('') //.append(jQuery('').attr('value' { var val = jQuery(this).val() // val will be the value in [2] // TODO // this will be called when dropdown changes }); var time_m = [1,5,10,15,30]; for (var i=0; i < time_m.length; i++) { var ts = %%javascript var CellToolbar = Jupyter.CellToolbar var toggle = function(div, cell) { var button_container = $(div) // let's create a button that shows the current value of the metadata var button = $('')0 码力 | 189 页 | 1.88 MB | 1 年前3Jupyter Notebook 6.4.10 Documentation
set_autosave_interval(milliseconds) • know that 1 min = 60 sec, and 1 sec = 1000 ms var label = jQuery('').text('AutoScroll Limit:'); var select = jQuery('') //.append(jQuery('').attr('value' { var val = jQuery(this).val() // val will be the value in [2] // TODO // this will be called when dropdown changes }); var time_m = [1,5,10,15,30]; for (var i=0; i < time_m.length; i++) { var ts = %%javascript var CellToolbar = Jupyter.CellToolbar var toggle = function(div, cell) { var button_container = $(div) // let's create a button that shows the current value of the metadata var button = $('')0 码力 | 181 页 | 1.87 MB | 1 年前3Jupyter Notebook 6.4.11 Documentation
set_autosave_interval(milliseconds) • know that 1 min = 60 sec, and 1 sec = 1000 ms var label = jQuery('').text('AutoScroll Limit:'); var select = jQuery('') //.append(jQuery('').attr('value' { var val = jQuery(this).val() // val will be the value in [2] // TODO // this will be called when dropdown changes }); var time_m = [1,5,10,15,30]; for (var i=0; i < time_m.length; i++) { var ts = %%javascript var CellToolbar = Jupyter.CellToolbar var toggle = function(div, cell) { var button_container = $(div) // let's create a button that shows the current value of the metadata var button = $('')0 码力 | 183 页 | 1.88 MB | 1 年前3
共 392 条
- 1
- 2
- 3
- 4
- 5
- 6
- 40