10 为Python Function自动生成Web UI 彭未康为 Python Function 自动生成 Web UI 彭未康 Touch-Callable The web framework for less serious application. Touch-Callable vs (Flask, Django) • Django, Flask • 起步快且容易(getting started quick and easy) • 扩展为复杂应用(scale 3.6 例子:生成测试用户 例子:生成测试用户 例子:生成测试用户 例子:远程控制饮水机 接下来: • 支持更多的数据类型 • 类型对应的控件可配置 大胆的想法: • 直接使用 Function 构建小型应用的管理后台? • Serverless 管理后台? 谢谢大家0 码力 | 11 页 | 791.38 KB | 1 年前3
Python in Azure Functions 基于Python的Azure Functions实践 赵健0 码力 | 28 页 | 12.57 MB | 1 年前3
Object Pascal 参考手册(Ver 0.1) dispinterface div do downto else end except exports file finalization finally for function goto if implementation in inherited initialization inline interface is label library 括号通常使代码更容易读写,即使有时候严格说来它们是多余的。这样,上面第一个例子可写作 X + (Y * Z) 这里,括号(对编译器)不是必须的,但对程序的编写者和阅读者来说,它节省了判断运算符优先 级的时间。 Function calls(函数调用) 因为函数返回一个值,所以函数调用是表达式。比如,若你定义了一个叫做 Calc 的函数,它接收两个整 数参数并返回一个整数,那么函数调用Calc(24, 47)是一 Shortint(MyChar) := 122; 把字符 z(ASCII1 值是 122)赋给 MyChar。 你可以把变量转换为过程类型。比如,给出下面的声明 type Func = function(X: Integer): Integer; var F: Func; P: Pointer; N: Integer; 你可以应用下面的赋值语句 F := Func(P);0 码力 | 168 页 | 868.25 KB | 1 年前3
1 Beautiful Pythonreturn 'car #%s' % (self.next) else: raise StopIteration() Generator function keeps the state of the iteration in its own local scope 42 SPECIAL METHODS 43 THE PYTHONIC adj. — (Python) An object from which the iter() function can build an iterator. iter(iterable): SPECIAL METHODS 45 THE ZEN OF LEN 46 LEN FUNCTION AND __LEN__ METHOD Why do we call len(x) and Python code, the interpreter calls the user- defined __len__ special method. 47 48 OPERATOR OVERLOADING 49 50 EXAMPLE: SET OPERATORS 51 SETS IN A FEW LANGUAGES AND PLATFORMS Some languages/platform0 码力 | 109 页 | 34.99 MB | 1 年前3
Comprehensive Rust(简体中文) 202412Rust uses macros for situations where you want to have a variable number of arguments (no function overloading). • 宏是“卫生的”,这意味着它们不会意外地捕获它们所在作用域中的标识符。实际上,Rust 的宏只是 部分卫生。 • Rust 是多范式编程语言。例如,它具有强大的面向对 the sum of the n-1'th and n-2'th Fibonacci numbers. Write a function fib(n) that calculates the n'th Fibonacci number. When will this function panic? fn fib(n: u32) -> u32 { if n <= 2 { // The base case println!("gcd: {}", gcd(143, 52)); } • 类型跟随在声明的参数后(与某些编程语言相反),然后是返回类型。 • The last expression in a function body (or any block) becomes the return value. Simply omit the ; at the end of the expression. The0 码力 | 359 页 | 1.33 MB | 10 月前3
《深入浅出MFC》2/e如何利用MFC 来产生一个程序的书, 而不是一本教我如何设计一套MFC 的书。但是在我又读了30~40 页之后,我想这本书真是 棒,它告诉了我许多过去我不甚清楚的事情,像是virtual function、template、exception...。 Lung Feng我是您的忠实读友,从您1992 年出版的「Windows 程序设计」到现在的深入浅出MFC, operator 改写 override 多载 overloading,亦有他书译为「过荷」 封装 Encapsulation 继承 Inheritance 动态绑定 Binding,亦即后期绑定(late binding) 虚拟函数 virtual function 多态 Polymorphism,亦有他书译为「同名异式」 成员函数 member function 成员变量 data member,亦有他书译为「数据成员」 基础类别 0 码力 | 1009 页 | 11.08 MB | 1 年前3
Go 入门指南(The way to Go)fmt 包的 文档注释。 go doc package/subpackage 获取子包的文档注释,例如: go doc container/list 。 go doc package function 获取某个函数在某个包中的文档注释,例如: go doc fmt Printf 会显 示有关 fmt.Printf() 的使用说明。 这个工具只能获取在 Go 安装目录下 .../go/src 库,比如说它就无法解析 TObject.h。 Go入门指南 - 29 - 本文档使用 看云 构建 第二部分:语言的核心结构与技术 第4章:基本结构和基本数据类型 第5章:控制结构 第6章:函数(function) 第7章:数组与切片 第8章:Map 第9章:包(package) 第10章:结构(struct)与方法(method) 第11章:接口(interface)与反射(reflection) Func1() // ... fmt.Println(a) } func (t T) Method1() { //... } func Func1() { // exported function Func1 //... } Go 程序的执行(程序启动)顺序如下: 1. 按顺序导入所有被 main 包引用的其它包,然后在每个包中执行如下流程: 2. 如果该包又导入了其它的包0 码力 | 380 页 | 2.97 MB | 1 年前3
Go 入门指南(The way to Go)if-else 结构 5.2 测试多返回值函数的错误 5.3 switch 结构 5.4 for 结构 5.5 Break 与 continue 5.6 标签与 goto 第6章:函数(function) 6.1 介绍 6.2 函数参数与返回值 6.3 传递变长参数 6.4 defer 和追踪 6.5 内置函数 6.6 递归函数 6.7 将函数作为参数 6.8 闭包 6.9 fmt 包的文档注释。 go doc package/subpackage 获取子包的文档注释,例如: go doc container/list 。 go doc package function 获取某个函数在某个包中的文档注释,例如: go doc fmt Printf 会显示有关 fmt.Printf() 的使用说明。 这个工具只能获取在 Go 安装目录下 .. } 22. 23. func (t T) Method1() { 24. //... 25. } 26. 27. func Func1() { // exported function Func1 28. //... 29. } Go 程序的执行(程序启动)顺序如下: 1. 按顺序导入所有被 main 包引用的其它包,然后在每个包中执行如下流程: 2. 如果0 码力 | 466 页 | 4.44 MB | 1 年前3
Weblate 4.15.1 用户文档范围: 检查的类: 检查的标识符: 启用的标记: 忽略的标记: 插值示例: 格式化字符串, i18next 插值 [https://www.i18next.com/translation-function/interpolation] ICU MessageFormat 在 4.9 版本加入. ICU MessageFormat 字符串语法错误和/或占位符不匹 配。 已翻译字符串 weblate ignore-php-format 这里有 %d 个苹果 您的余额是 %1$d %2$s 参见 格式化字符串, PHP sprintf 文档 [https://www.php.net/manual/en/function.sprintf.php], PHP 格式字符串 [https://www.gnu.org/software/gettext/manual/html_node/php_002dformat.html] 中配置第三方 API 调用之间的最小延迟(以秒为单位)。 This rate-limits API calls from Weblate to these services to avoid overloading them. If you are being limited by secondary rate limiter at GitHub, increasing this might help0 码力 | 815 页 | 11.24 MB | 1 年前3
Weblate 4.15.2 用户文档范围: 检查的类: 检查的标识符: 启用的标记: 忽略的标记: 插值示例: 格式化字符串, i18next 插值 [https://www.i18next.com/translation-function/interpolation] ICU MessageFormat 在 4.9 版本加入. ICU MessageFormat 字符串语法错误和/或占位符不匹 配。 已翻译字符串 weblate ignore-php-format 这里有 %d 个苹果 您的余额是 %1$d %2$s 参见 格式化字符串, PHP sprintf 文档 [https://www.php.net/manual/en/function.sprintf.php], PHP 格式字符串 [https://www.gnu.org/software/gettext/manual/html_node/php_002dformat.html] 中配置第三方 API 调用之间的最小延迟(以秒为单位)。 This rate-limits API calls from Weblate to these services to avoid overloading them. If you are being limited by secondary rate limiter at GitHub, increasing this might help0 码力 | 816 页 | 11.24 MB | 1 年前3
共 561 条
- 1
- 2
- 3
- 4
- 5
- 6
- 57













