1、分支语句 if score = 78 if score >= 90: print("优秀") if score < 60: print("还需努力") if (score >=60) and (score < 90): print("中等生,加油") if else s
1、数据类型 1、数字 a、整数类型 b、浮点数类型 c、复数类型 d、布尔类型 2、字符串 3、列表 4、元组 5、集合 6、字典 / 2、整数类型之间的转换 # 显示转换 xx = int(False) prin
1、linux下安装字体库 # Ubuntu/Debian sudo apt-get update && sudo apt-get install -y fontconfig fonts-dejavu-core # CentOS/RHEL sudo yum install -y fontconfi
默认表单校验 在 ElementPlus 中,表单校验是一个非常实用的功能,它可以帮助我们在用户提交表单数据之前对输入内容进行验证,确保数据的完整性和准确性。下面为你详细介绍如何在 ElementPlus 中进行表单校验: 1. 基本使用步骤 (1)引入必要的组件 在你的 Vue 3 项目中,首先要
安装插件 参考 vbenjs/vite-plugin-mock - Vite 中文文档 pnpm install -D vite-plugin-mock mockjs