![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
语言学习
文章平均质量分 85
Michael.J.Scofield
这个作者很懒,什么都没留下…
展开
-
C++ Primer 中文版(第5版)第三章 字符串、向量和数组
第三章 字符串、向量和数组3.4 迭代器3.4.1 使用迭代器3.4.2 迭代器使用 3.4 迭代器 3.4.1 使用迭代器 练习3.23 #include <iostream> #include<vector> using namespace std; int main() { vector<int> v1(10, 42); for (auto it = v1.begin(); it != v1.end(); it++) {原创 2023-09-26 09:00:51 · 53 阅读 · 0 评论 -
python编程:从入门到实践
文章目录第二章 变量和简单的数据类型1.删除空白2.在python中输出双引号或者单引号的四种解决方案3.使用str()函数避免类型错误第三章 列表简介3.1 列表是什么3.2 修改、添加、删除元素1.在列表末尾添加元素2.在列表中插入元素3.从列表中删除元素3.3 组织列表1.使用sort()对列表进行永久性排序2.使用sorted()对列表进行临时性排序3.倒着打印列表4.确定列表长度 第二章 变量和简单的数据类型 1.删除空白 name = "abc ecDAS " print(name) prin原创 2021-02-06 11:54:36 · 761 阅读 · 0 评论