上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 72 下一页
摘要: There will be a file named uninstall.sh in /usr/local/netbeans x.x if you installed netbeans with root privilege. If you installed it with a normal us 阅读全文
posted @ 2017-06-20 15:56 2021年的顺遂平安君 阅读(178) 评论(0) 推荐(0)
摘要: There will be a file named uninstall.sh in /usr/local/netbeans-x.x if you installed netbeans with root privilege. If you inst... 阅读全文
posted @ 2017-06-20 15:56 2021年的顺遂平安君 阅读(50) 评论(0) 推荐(0)
摘要: A Python decorator is a specific change to the Python syntax that allows us to more conveniently alter functions and methods ... 阅读全文
posted @ 2017-06-20 11:31 2021年的顺遂平安君 阅读(60) 评论(0) 推荐(0)
摘要: A Python decorator is a specific change to the Python syntax that allows us to more conveniently alter functions and methods (and possibly classes in 阅读全文
posted @ 2017-06-20 11:31 2021年的顺遂平安君 阅读(144) 评论(0) 推荐(0)
摘要: ``` def logger(msg): def log_message(): print('Log:', msg) return log_message 返回的是函数 log_hi = logger('Hi!') 此时 相当于 ,`Hi msg` log_hi() def html_tag(tag 阅读全文
posted @ 2017-06-19 22:49 2021年的顺遂平安君 阅读(225) 评论(0) 推荐(0)
摘要: def logger(msg): def log_message(): print('Log:', msg) return log_message # 返回的是函数log_hi = logger('Hi!') # 此时`log_h... 阅读全文
posted @ 2017-06-19 22:49 2021年的顺遂平安君 阅读(42) 评论(0) 推荐(0)
摘要: sorted和sort() li = [9, 1, 8, 2, 7, 3, 6, 4, 5]s_li = sorted(li)print ('Sorted Variable: \t', s_li)li.sort()print ('Original Var... 阅读全文
posted @ 2017-06-19 20:42 2021年的顺遂平安君 阅读(54) 评论(0) 推荐(0)
摘要: 和`sort()` 输出结果: Sorted Variable: [1, 2, 3, 4, 5, 6, 7, 8, 9] Original Variable: [1, 2, 3, 4, 5, 6, 7, 8, 9] 如果: 输出的结果是: None _Tuple_ 不能使用 ,只能定义一个新的变量 阅读全文
posted @ 2017-06-19 20:42 2021年的顺遂平安君 阅读(186) 评论(0) 推荐(0)
摘要: ``` def outer(): x = 'outer x' def inner(): x = 'inner x' print(x) inner() print(x) 这里的 与`x = 'outer x'`处在同一个Enclosing outer() 运行结果: inner x outer x 使 阅读全文
posted @ 2017-06-19 20:26 2021年的顺遂平安君 阅读(947) 评论(0) 推荐(0)
摘要: def outer(): x = 'outer x' def inner(): x = 'inner x' print(x) inner() print(x) # 这里的`x`与`x = 'outer x... 阅读全文
posted @ 2017-06-19 20:26 2021年的顺遂平安君 阅读(55) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 72 下一页