上一页 1 2 3 4 5 6 7 ··· 49 下一页
摘要: ![](https://img2023.cnblogs.com/blog/1940615/202304/1940615-20230403101354582-1387034555.png) 阅读全文
posted @ 2023-04-03 10:15 LeoShi2020 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 从一个大的数组或对象中提取个别值使用 数组赋值逆向 let obj = reactive({ name: "张三", age: 20 }) let { name, age } = toRefs(obj); const btn = () => { name.value = '李四'; console. 阅读全文
posted @ 2023-04-03 01:29 LeoShi2020 阅读(10) 评论(0) 推荐(0) 编辑
摘要: # 安装组件 pnpm install -D unplugin-vue-components unplugin-auto-import # 修改配置文件 // vite.config.ts import { defineConfig } from 'vite' import AutoImport f 阅读全文
posted @ 2023-04-03 01:11 LeoShi2020 阅读(48) 评论(0) 推荐(0) 编辑
摘要: # 安装组件 pnpm install @types/node // vite.config.ts import path from "path"; export default defineConfig({ plugins: [ ... ], resolve: { alias: { "@": pa 阅读全文
posted @ 2023-04-03 00:14 LeoShi2020 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 1. npm安装 vue cli [root@Python 20230401VUE3]# npm install -g @vue/cli 2. 查看 vue版本 [root@Python 20230401VUE3]# vue --version @vue/cli 5.0.8 3. 创建项目 [roo 阅读全文
posted @ 2023-04-01 11:50 LeoShi2020 阅读(132) 评论(0) 推荐(0) 编辑
摘要: ''' 异步迭代器 ''' import asyncio class MyRange: def __init__(self, total=0): self.total = total self.count = 0 def __aiter__(self): return self async def 阅读全文
posted @ 2023-03-31 10:40 LeoShi2020 阅读(32) 评论(0) 推荐(0) 编辑
摘要: ''' 异步上下文管理 ''' import asyncio class ContextManager: def __init__(self): self.conn = None async def action(self): return self.conn async def __aenter_ 阅读全文
posted @ 2023-03-31 10:35 LeoShi2020 阅读(21) 评论(0) 推荐(0) 编辑
摘要: ''' 同步上下文管理器 ''' import time class ContextManager: def __init__(self): self.conn = None def action(self): return self.conn def __enter__(self): # 链接数据 阅读全文
posted @ 2023-03-31 10:25 LeoShi2020 阅读(10) 评论(0) 推荐(0) 编辑
摘要: import asyncio import time from concurrent.futures import ThreadPoolExecutor def download_img(url): print(f"下载图片:{url}") time.sleep(1) print(f"下载完成:{u 阅读全文
posted @ 2023-03-31 10:12 LeoShi2020 阅读(60) 评论(0) 推荐(0) 编辑
摘要: import time from concurrent.futures import ThreadPoolExecutor def download_img(url): print(f"下载图片:{url}") time.sleep(1) print(f"下载完成:{url}") def main( 阅读全文
posted @ 2023-03-31 10:08 LeoShi2020 阅读(28) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 49 下一页