Kotlin 1.9.10 官方文档 中文版
8.5.1 1.8.5.2 1.8.5.3 控制流程 条件与循环 返回与跳转 异常 包与导入 类与对象 类 继承 属性 接口 函数式(SAM)接口 可见性修饰符 扩展 数据类 密封类与密封接口 泛型:in、out、where 嵌套类 枚举类 内联类 对象表达式与对象声明 委托 属性委托 类型别名 函数 函数 lambda 表达式 内联函数 创建用到数据库的 RESTful web 服务 Spring Boot 与 Kotlin 入门 创建使用 Kotlin 的 Spring Boot 项目 向 Spring Boot 项目添加数据类 为 Spring Boot 项目添加数据库支持 使用 Spring Data CrudRepository 进行数据库访问 Spring 框架 Kotlin 文档↗ 使用 Spring Boot 本教程的每一章都包含: 理论:通过示例介绍语言的关键概念。 实践:通过练习来检验对所学内容的理解。 答案:参考答案。 在本教程中可学到: 变量 基本类型 集合 控制流程 函数 类 空安全 为了获得最佳体验,建议按顺序通读这些章节。 当然仍然可以选择想读的章 节来阅读。 准备出发? 概述 Kotlin 多平台 Kotlin 用于服务器端开发 Kotlin 用于 Android0 码力 | 3753 页 | 29.69 MB | 1 年前3PyWebIO v1.2.3 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。 如果新创建的线程中没有使用到PyWebIO的交 如果新创建的线程中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 当会话的任务函数和会话内通过 register_thread(thread) 注册的线程都 结束运行时,会话关闭。 Server模式下多线程的使用示例: def def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 119 页 | 7.44 MB | 1 年前3PyWebIO v1.2.2 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。 如果新创建的线程中没有使用到PyWebIO的交 如果新创建的线程中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 当会话的任务函数和会话内通过 register_thread(thread) 注册的线程都 结束运行时,会话关闭。 Server模式下多线程的使用示例: def def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 119 页 | 7.41 MB | 1 年前3PyWebIO v1.4.0 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。如果新创建的线程中没有使用到PyWebIO的交 中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 Server模式下多线程的使用示例: def show_time(): while True: with use_scope(name='time' def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 135 页 | 7.45 MB | 1 年前3PyWebIO v1.1.0 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。 如果新创建的线程中没有使用到PyWebIO的交 如果新创建的线程中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 当会话的任务函数和会话内通过 register_thread(thread) 注册的线程都 结束运行时,会话关闭。 Server模式下多线程的使用示例: def = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # 在后台运行show_time() # � 没有使用register_thread注册的线程调用PyWebIO交互函数会产生异常 threading.Thread(target=show_time)0 码力 | 119 页 | 7.41 MB | 1 年前3PyWebIO v1.3.1 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。 如果新创建的线程中没有使用到PyWebIO的交 如果新创建的线程中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 当会话的任务函数和会话内通过 register_thread(thread) 注册的线程都 结束运行时,会话关闭。 Server模式下多线程的使用示例: def def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 132 页 | 7.45 MB | 1 年前3PyWebIO v1.3.3 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。 如果新创建的线程中没有使用到PyWebIO的交 如果新创建的线程中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 当会话的任务函数和会话内通过 register_thread(thread) 注册的线程都 结束运行时,会话关闭。 Server模式下多线程的使用示例: def def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 132 页 | 7.45 MB | 1 年前3PyWebIO v1.3.0 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。 如果新创建的线程中没有使用到PyWebIO的交 如果新创建的线程中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 当会话的任务函数和会话内通过 register_thread(thread) 注册的线程都 结束运行时,会话关闭。 Server模式下多线程的使用示例: def def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 132 页 | 7.45 MB | 1 年前3PyWebIO v1.3.2 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。 如果新创建的线程中没有使用到PyWebIO的交 如果新创建的线程中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 当会话的任务函数和会话内通过 register_thread(thread) 注册的线程都 结束运行时,会话关闭。 Server模式下多线程的使用示例: def def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 132 页 | 7.45 MB | 1 年前3PyWebIO v1.5.2 使用手册
[https://docs.python.org/3/library/threading.html#thread-objects] 运行 结束后,脚本退出。 Server模式 Server模式下,如果需要在新创建的线程中使用PyWebIO的交互函数,需要手 动调用 register_thread(thread) 对新进程进行注册(这样PyWebIO才能知道 新创建的线程属于哪个会话)。如果新创建的线程中没有使用到PyWebIO的交 中没有使用到PyWebIO的交 互函数,则无需注册。没有使用 register_thread(thread) 注册的线程不受会 话管理,其调用PyWebIO的交互函数将会产生 SessionNotFoundException 异 常。 Server模式下多线程的使用示例: def show_time(): while True: with use_scope(name='time' def app(): t = threading.Thread(target=show_time) register_thread(t) put_markdown('## Clock') t.start() # run `show_time()` in background # � this thread will cause `SessionNotFoundException`0 码力 | 144 页 | 7.46 MB | 1 年前3
共 404 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41