摘要: Python 列表与字典 1 列表(Lists) 列表其实就是Python的数组,它支持动态调整大小,并且可以包含不同类型的元素。 a = [] 列表的常用方法包括count(key),index(value),reverse(),sort(),append(value),pop() 切片操作: n 阅读全文
posted @ 2021-03-15 20:56 popozyl 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 2.运算方法和运算器 2.1 数据与文字的表示方法 2.1.1 数据格式 在选择计算机的数的表示方式时,需要考虑以下几个因素: 要表示的数的类型(小数,整数,实数,复数) 可能的数值范围 数值精确度 数据存储和处理所需要的硬件代价 计算机中常用的数据表示格式有两种,一是定点格式,二是浮点格式。一般来 阅读全文
posted @ 2021-03-15 17:21 popozyl 阅读(267) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 3e5+10; const int INF = 0x3fffffff; int first = 1; int n, m, a, b, c; int rt; char op[10]; 阅读全文
posted @ 2021-03-15 11:27 popozyl 阅读(55) 评论(0) 推荐(0) 编辑