08 2021 档案
摘要:Buffon's Needle https://mste.illinois.edu/activity/buffon/ 介绍 + 模拟 Buffon's Needle is one of the oldest problems in the field of geometrical probabili
阅读全文
摘要:dest https://docs.python.org/3/library/argparse.html#dest dest用于指定解析后将参数值,存储到参数表中的参数名称, 简称存储参数名。 dest本身是add_argument参数之一 The name of this attribute is
阅读全文
摘要:Integration with FastAPI and APScheduler https://www.cnblogs.com/lightsong/p/15054120.html 上篇博文,介绍了如何给 API Server添加 APScheduler, 以便之后后台的定时任务。 但是这里有一个问
阅读全文
摘要:Getting Started With Async Features in Python https://realpython.com/python-async-features/#:~:text=%20Using%20Python%20Async%20Features%20in%20Practi
阅读全文
摘要:Background 大部分的框架,要么只支持 restful API, 要么只支持CLI。 例如: fastapi 或者 django_rest_framework 支持rest API click 支持将函数装饰为 CLI 特殊情况,需要两种都要支持。即一份代码, 同时支持两种接口。 hug就是
阅读全文
摘要:supplychain on blockchain 每个公司都有自己的供应链, 过程中产生的交易数据, 如果存在其中参与方的一方服务器中, 并不能像银行的一样, 能够给各方产生一个信任的效果,因为任何一方都会担心数据的拥有这改变数据。 区块链天生具有不可篡改, 去中心化的特性, 可以解决供应链中各个
阅读全文
摘要:xstate https://xstate.js.org/docs/ https://github.com/statelyai/xstate 为现代的web提供有限状态机功能。 JavaScript and TypeScript finite state machines (opens new wi
阅读全文
摘要:PI https://www.mathsisfun.com/numbers/pi.html Draw a circle with a diameter (all the way across the circle) of 1 Then the circumference (all the way a
阅读全文