• 学习总结week2_5

      python容器型数据–字符串 一、字符串相关方法 字符串.xxx 1.字符串.join 序列 将序列中的元素用指定的字符串拼接在一起,形成一个新的字符串(序列中的元素必须是字符串) 如果需要join的序列中的元素不是字符串,就把他变成字符串 list1 = 'ww', 'wdaf', 'dwad...

      2022-08-05 05:13非鱼丶丶

      阅读更多
    • day9-字符串作业

      1. 输入一个字符串,打印所有奇数位上的字符 下标是1,3,5,7…位上的字符 例如: 输入’abcd1234 ’ 输出’bd24’ str1 = 'abcd1234' for index, item in enumerate str1 : if index % 2: print item, end...

      2022-08-05 05:13非鱼丶丶

      阅读更多
    • 学习总结week2_3

      python容器型数据–字典 单目运算符: not 双目运算符: +、 、/ 、/、and、 三目运算符: if else 表达式2 if 表达式1 else 表达式3 num = 23, 4, 67, 88, 90, 21 nums = x / 2 if x % 2 else x // 2 fo...

      2022-08-05 05:13非鱼丶丶

      阅读更多
    • day8字典作业

      1. 定义一个变量保存一个学生的信息,学生信心中包括:姓名、年龄、成绩 单科 、电话、性别 student message = {'name': 'A', 'age': 18, 'English grades': 59, 'tel': '123456789', 'gender': 'man'} 1....

      2022-08-05 05:13非鱼丶丶

      阅读更多
    • day6-列表作业

      1. 基础题 1. 已知一个数字列表,打印列表中所有的奇数 num = 1, 2, 3, 4, 5 for x in num: if x % 2 = 0: print x 1. 已知一个数字列表,打印列表中所有能被能被3整除但是不能被2整除的数 num = 1, 2, 3, 4, 5 for x ...

      2022-08-05 05:13非鱼丶丶

      阅读更多
    • 学习总结week2_1

      python容器型数据 一:列表 1)列表是容器型数据: 数据1, 数据2, 数据3, 数据4 2)特点:列表是可变的(指的是容器中元素的个数和值可变—支持增删改) 列表是有序的(支持下标操作) 3)元素的要求:无(可以是任何类型的数据,元素类型也可不一致) score = 100, 86, 15...

      2022-08-05 05:13非鱼丶丶

      阅读更多
    • 学习总结day5

      python循环语句关键字 一:continue和break continue和break都是循环体关键字(只出现在循环中) 1)continue 结束一次循环(结束当次循环) 在执行循环体的时候如果遇到continue,那么这次循环结束,直接进入下次循环 2)break 结束整个循环 for x...

      2022-08-05 05:13非鱼丶丶

      阅读更多
    • npm搭建本地服务器,直接运行build后的目录

      一、安装 如果进行前端开发,需要发布代码时,需要对项目进行build,build后的文件只能放在服务器上边使用,如果手头没有服务器,或者不会弄服务器,那么就可以使用serve进行验证,还是比较方便的。可以支持更多参数,更详细的用法可以通过 serve h 查看。 / 全局安装本地服务器依赖 npm...

      2022-08-05 05:13程序猿_Mr. Guo

      阅读更多
    • 解决端口占用问题

      解决端口占用问题

      一、打开命令窗口或者power shell        命令窗口:开始— 运行— cmd(window+R 组合键)        PowerShell:开始— 运行— PowerShell 也可以直接搜索PowerShell 二、查找所有运行的端口 输入命令:        netstat an...

      2022-08-05 05:13Ly666_ever

      阅读更多
    • JSX基础

      JSX基础 JSX 仅仅只是 React.createElement component, props, ...children 函数的语法糖。 如下: MyButton color='blue' shadowSize={2} Click Me /MyButton 会编译为: React.crea...

      2022-08-05 05:13@前端攻城狮

      阅读更多
    • js实现数组去重

      数组去重 1、使用Set function fn1 arr { const result = Array.from new Set arr ; return result; } 2、使用includes返回一个新数组 function fn2 arr { const newArr = ; for ...

      2022-08-05 05:13@前端攻城狮

      阅读更多
    • Map、WeakMap

      Map、WeakMap Map Map 对象保存键值对,并且能够记住键的原始插入顺序。任何值 对象或者原始值 都可以作为一个键或一个值。 一个Map对象在迭代时会根据对象中元素的插入顺序来进行,迭代时返回 key, value 形式的数组。 Map和Object的不同 : 1、Map默认不包含任何...

      2022-08-05 05:13@前端攻城狮

      阅读更多
    • es6迭代协议

      迭代协议 迭代协议分为两个协议: 可迭代协议 和 迭代器协议 。 可迭代协议 可迭代协议 允许 JavaScript 对象定义或定制它们的迭代行为。如果一个对象(或它原型链上的对象)实现了/ / Symbol.iterator 方法,称该对象满足可迭代协议,也称该对象为 可迭代对象/ / 。 Sy...

      2022-08-05 05:13@前端攻城狮

      阅读更多
    • Calling Matlab configuration in pycharm: No module named 'matlab.engine'; 'matlab' is not a package

      Calling Matlab configuration in pycharm: No module named 'matlab.engine'; 'matlab' is not a package

      Using Pycharm configuration to call matlab experience sharing, browse a lot of posts to summarize, mainly this article: python calls matlab method rec...

      2022-08-05 05:24When you are full, you will be strong

      阅读更多
    • 02.01-----The role of parameter reference "&"

      Parameters of the role of reference ", "to modify parameters need to be brought back, then use quotation marks" "no parameter references"/include "ios...

      2022-08-05 05:24A long way to go

      阅读更多
    • Distributed and Clustered

      Distributed: Different modules are deployed on different multiple servers, and they communicate with each other through rpc, rmi Cluster: The same mod...

      2022-08-05 05:24value growth

      阅读更多
    • CAP+BASE

      CAP+BASE

      1. RDBMS: ACID 2. Distributed storage: CAP+BASE 2.1 CAP three-choice two Consistency (strong consistency) Availablility (availability) Partition toler...

      2022-08-05 05:24value growth

      阅读更多
    • 【After a while 6】Machine vision video 【After a while 2 was squeezed out】

      【After a while 6】Machine vision video 【After a while 2 was squeezed out】

      On the 23rd, the first section on the 23rd began at 11:06. Machine vision - used in robots, computer vision - that computer vision depends on the tech...

      2022-08-05 05:24Mosu playing computer

      阅读更多
    • HQL statement execution process

      HQL statement execution process: 1. Grammar analysis: Antlr defines the grammar rules of SQL, completes SQL lexical, grammar analysis, and converts SQ...

      2022-08-05 05:25value growth

      阅读更多
    • Pandas(五)—— 分类数据、读取数据库

      Pandas(五)—— 分类数据、读取数据库

      Python模块 —— Pandas Pandas(五)—— 分类数据、读取数据库 Pandas 1 九、分类数据 3 9.1 cat对象 91 cat 4 9.2 有序分类 92 32 9.3 区间类别 93 37 9.3.1 利用cut和qcut进行区间构造 931 cutqcut 38 9....

      2022-08-05 05:13share16

      阅读更多
  • 猜你喜欢