xinetzone / dao Goto Github PK
View Code? Open in Web Editor NEWxinetzone's blog
Home Page: https://xinetzone.github.io/dao/
License: Apache License 2.0
xinetzone's blog
Home Page: https://xinetzone.github.io/dao/
License: Apache License 2.0
https://xinetzone.github.io/dao/post/zh-CN/2ceed41e.html
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/python/
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/66fcbe5b6847.html
CherryPy 中的配置是通过字典实现的。键是命名映射值的字符串。值可以是任何类型。在 CherryPy3 中,您可以使用配置(文件或字典)直接在引擎,服务器,请求,响应和日志对象上设置属性。因此,要了解配置文件中所有可用内容的全部范围,最好的方法是简单地导入这些对象,然后查看 help(obj) 告诉您什么。 Architecture关于 CherryPy 3 的配置,您需要了解的第一件事是它
https://xinetzone.github.io/dao/xint/zh-CN/9d900d55bcfe.html
理论有矩阵
https://xinetzone.github.io/dao/post/zh-CN/1cd68c1c97b2.html
1 直线1.1 基本概念 直线的倾斜角:一条直线向上的方向与
https://xinetzone.github.io/dao/post/zh-CN/7a7ca54db5c1.html
cherrypy.process.wspbus.Buscherrypy.process.wspbus.Bus 处理用于 HTTP 站点部署的状态机(state-machine)和 Messenger。 即使同一频道上的其他监听器失败,也可以确保调用给定频道的所有监听器。记录每个失败,但是执行继续到下一个侦听器。停止从侦听器内部进行所有处理的唯一方法是提高 SystemExit 并停止整个服务器。
https://xinetzone.github.io/dao/python/zh-CN/17ff065b
subprocess 模块允许你生成新的进程,连接它们的输入、输出、错误管道,并且获取它们的返回码。推荐的调用子进程的方式是在任何它支持的用例中使用 run() 函数。对于更进阶的用例,也可以使用底层的 Popen 接口。 runsubprocess.run(args, *, stdin=None, input=None, stdout=None, stderr=None, capture_out
https://xinetzone.github.io/dao/post/zh-CN/20d953f1f0b1.html
CherryPy 支持这些部分将介绍的更高级的功能。 1 为页面处理程序设置别名cherrypy.expose 装饰器提供的一个相当未知但有用的功能是支持别名。 import random import string import cherrypy class StringGenerator: @cherrypy.expose(['generer', 'generar'])
https://xinetzone.github.io/dao/post/zh-CN/a20e10870e52.html
翻译自 CherryPy Basics 以下各节将引导您完成 CherryPy 应用程序的基础知识,并介绍一些基本概念。 1 一分钟的应用示例您可以用 CherryPy 编写的最基本的应用程序几乎涉及其所有核心概念。 import cherrypy class Root: @cherrypy.expose def index(self): return "Hel
https://xinetzone.github.io/dao/post/zh-CN/cb8e14f.html
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/dash/zh-CN/ef498434c4c8.html
Dash 应用程序通过 CSS 和 JavaScript 在 web 浏览器中呈现。在页面加载时,Dash 提供一个小的 HTML 模板,其中包括渲染应用程序所需的 CSS 和 JavaScript 引用。这一章涵盖了你需要知道的关于配置这个 HTML 文件以及关于在 Dash 应用程序中包括外部 CSS 和 JavaScript 的一切。 添加自己的 CSS 和 JavaScript 到 Das
https://xinetzone.github.io/dao/post/zh-CN/31dbf5aa
contextvars 提供了相关 API 用于管理、存储和访问上下文相关的状态。ContextVar 类用于声明 上下文变量(Context Variables) 并与其一起使用。函数 copy_context() 和类 Context 用于管理当前上下文和异步框架中。 在多并发环境中,有状态的上下文管理器应该使用 Context Variables,而不是 threading.local()
https://xinetzone.github.io/dao/xint/zh-CN/e12591eb9d76.html
使用 TensorFlow,MXNet,PyTorch 实现线性回归
https://xinetzone.github.io/dao/post/zh-CN/95d45a6b
本教程介绍如何动手从零开始制作 Hexo 主题的博客网站。 Hexo 简介 参考 Hexo 官方文档 安装 Hexo。 在 GitHub 创建一个空白仓库,比如:xinetzone/xin(本教程,就以此为例介绍)。接着,将其克隆到本地。 在 xinetzone/xin 下初始化 Hexo 环境: hexo init book 接着便可以预览网站(虽然会因为缺少主题而报一些警告,但不影响预览
https://xinetzone.github.io/dao/post/zh-CN/5c324514f254.html
CherryPy 独立存在,但作为应用程序服务器,它通常位于共享或复杂的环境中。因此,在反向代理后面运行 CherryPy 或使用其他服务器托管应用程序的情况并不少见。 多年来,CherryPy 的服务器已被证明可靠且速度足够快。如果您收到的访问量是平均水平,那么它就可以很好地完成自己的任务。尽管如此,通常还是将静态内容的提供委托给功能更强大的服务器,例如 nginx 或 CDN。 Run as
https://xinetzone.github.io/dao/jupyter/zh-CN/eae865ff0967.html
Jupiter Book 是一个开源项目,用于从计算中构建漂亮的、具有出版质量的书籍和文档。 以下是木星之书的一些特点: 在 Markdown 中编写出版质量的内容:你可以使用 Jupyter Markdown,也可以使用带有发布功能的 Markdown 的扩展版本。这包括对富文本语法的支持,如引用和交叉引用、数学和等式,以及图像。 把内容写在 Jupyter Notebook 上:这允许您在书
https://xinetzone.github.io/dao/post/zh-CN/b13fe0ba
异步并发概念参考:Asynchronous Concurrency Concepts(异步并发(Asynchronous Concurrency)) 使用其他并发模型的大多数程序都是线性编写的,并且依赖于语言运行时或操作系统的基础线程或进程管理来适当地更改上下文。基于 asyncio 的应用程序需要应用程序代码来显式处理上下文更改,而正确地使用技术来完成此操作取决于对几个相互关联的概念的理解。 a
https://xinetzone.github.io/dao/post/zh-CN/8432efb27024.html
CherryPy 确实是一个开放框架,您可以在服务器端或根据每个请求随意扩展和插入新功能。无论哪种方式,CherryPy 都可以帮助您通过简单的模式来构建应用程序并支持体系结构。 服务器的函数CherryPy 可以视为 HTTP 库,也可以视为 Web 应用程序框架。在后一种情况下,其体系结构提供了支持整个服务器实例上的操作的机制。这提供了一个强大的画布,可以执行持久性操作,因为服务器范围的函数可
https://xinetzone.github.io/dao/python/zh-CN/ad594e3a
流是用于处理网络连接的支持 async/await 的高层级原语(primitives)。流允许发送和接收数据,而不需要使用回调或低级协议和传输。 下面是一个使用 asyncio streams 编写的 TCP echo 客户端示例: import asyncio async def tcp_echo_client(message): reader, writer = await asy
https://xinetzone.github.io/design/post/zh-CN/372df58aaf4f.html
数字
https://xinetzone.github.io/dao/post/zh-CN/99261320ee2d.html
任务(Task)是与事件循环进行交互的主要方式之一。任务包装协程并跟踪它们何时完成。任务是 Future 的子类,因此其他协程可以等待它们,并且每个协程都有可以在任务完成后检索的结果。 创建任务要启动任务,请使用 create_task() 创建一个 Task 实例。只要循环正在运行且协程不返回,结果任务将作为事件循环管理的并发操作的一部分运行。 # asyncio_create_task.py
https://xinetzone.github.io/dao/post/zh-CN/abc816ef
本项目支持: PrismJS 高亮 ToDo List(待办事项),格式: - [ ] 喝水 8 杯 - [x] 跑步 支持 Katex 比如:
https://xinetzone.github.io/dao/mircromastery/zh-CN/f0e28335bb89.html
发掘兴趣+识别重心+立体学习+内行经验=无限可能 《微精通》 作者:罗伯特.特威格尔 什么是“微精通”微精通 是一种完整、独立的实践体系,但也可以扩展到更大的领域中。 你可以先精通一件小事儿,然后把它做大,也可以二者都做。 微精通 可被复验,且往往能够取得成功。它的实践本身就是令人愉悦的过程。你可以试着去实践。微精通,它有一定的弹性,可以对其进行调整。同时,当你用一种三维立体的方法开展学习时,大脑
https://xinetzone.github.io/dao/post/zh-CN/bfab43ba9569.html
迭代法设
https://xinetzone.github.io/dao/post/zh-CN/af03ad259480.html
高级回调使用 PreventUpdate 捕获错误在某些情况下,您不想更新回调输出。您可以通过在回调函数中引发 PreventUpdate 异常来实现此目的。 import dash import dash_html_components as html from dash.dependencies import Input, Output from dash.exceptions import
https://xinetzone.github.io/dao/post/zh-CN/55e01cf0
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/friends/
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/9a6e76240070.html
简介CherryPy 是一个 pythonic 的,面向对象的 Web 框架。CherryPy 允许开发人员以与构建任何其他面向对象的 Python 程序相同的方式构建 Web 应用程序。可以在更短的时间内开发出更小的源代码。 CherryPy 应用程序通常如下所示: import cherrypy class HelloWorld: # CherryPy 绝不会发布未将 `expose
https://xinetzone.github.io/dao/post/en-US/0c7cfe7fbd54.html
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick
https://xinetzone.github.io/dao/post/zh-CN/8851f3c1
经验告诉我们永远不要面向用户的接口暴露 Future 对象,同时建议使用 loop.create_future() 来创建 Future 对象。这种方法可以让 Future 对象使用其它的事件循环实现,它可以注入自己的优化实现。
https://xinetzone.github.io/dao/post/default/4a17b156.html
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/cfdc3937
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/contact/
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/e3577543
该模块提供了在 Python 中使用信号处理程序的机制。 一般规则signal.signal() 函数允许定义在接收到信号时执行的自定义处理程序。少量的默认处理程序已经设置:SIGPIPE 被忽略(因此管道和套接字上的写入错误可以报告为普通的 Python 异常)以及如果父进程没有更改 SIGINT,则其会被翻译成 KeyboardInterrupt 异常。一旦设置,特定信号的处理程序将保持安装,
https://xinetzone.github.io/dao/post/zh-CN/779e0dcc29b0.html
协程(Coroutine)是为并发操作而设计的语言构造。协程函数在被调用时会创建一个协程对象,然后调用者可以使用协程的 send() 方法运行该函数的代码。一个协程可以将 await 关键字与另一个协程一起暂停执行。暂停时,协程的状态得以维持,使其在下次唤醒时可以从中断的位置恢复。 事件循环事件循环是每个 asyncio 应用的核心。事件循环会运行异步任务和回调,执行网络 IO 操作,以及运行子进
https://xinetzone.github.io/dao/post/zh-CN/91553c88.html
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/python/zh-CN/31ee077c5c0f.html
socket模块(底层网络接口)提供了访问 BSD 套接字 的接口。在所有现代 Unix 系统、Windows、macOS 和其他一些平台上可用。 概述Socket 又称”套接字”,应用程序通常通过”套接字”向网络发出请求或者应答网络请求,使主机间或者一台计算机上的进程间可以通讯。这个 Python 接口是用 Python 的面向对象风格对 Unix 系统调用和套接字库接口的直译:函数 socke
https://xinetzone.github.io/dao/post/zh-CN/7bac79121ea7.html
使用 TensorFlow,MXNet,P\hat{y}Torch 实现线性回归
https://xinetzone.github.io/dao/post/zh-CN/f6ad13f0.html
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/6ee87d64e6ca.html
Dash 是用于构建 Web 分析应用程序的高效 Python 框架。Dash 建立在 Flask,Plotly.js 和 React.js 之上,是使用纯 Python 使用高度自定义用户界面构建数据可视化应用程序的理想选择。它特别适合使用 Python 处理数据的任何人。 通过几个简单的模式,Dash 提取了构建基于 Web 的交互式应用程序所需的所有技术和协议。Dash 应用程序在 Web
https://xinetzone.github.io/design/post/en-US/044be61133f4.html
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick
https://xinetzone.github.io/dao/post/en-US/4a17b156
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/ff6e0414.html
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/e6d6f9e7
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/ff8c971.html
利用 AI 开发一切有意思的东西
https://xinetzone.github.io/dao/post/zh-CN/23dd9200e1e9.html
参考 GitHub Pages | Hexo 配置。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.