
随便发点
彧圆
一个计算机专业小菜鸡
展开
-
C语言 利用三维方向向量 画玫瑰?
无摘要原创 2022-10-04 20:04:36 · 569 阅读 · 1 评论 -
Python 利用 turtle画出樱花树
turtle一个小应用原创 2022-10-04 20:01:40 · 1225 阅读 · 1 评论 -
Css背景相关参数
Css背景相关参数。原创 2022-07-23 21:39:01 · 421 阅读 · 0 评论 -
机器学习pytorch
b站小土堆yydshttps://gitee.com/d-concept/LearnPytorch.git粘下学习仓库笔记 有兴趣欢迎访问原创 2022-05-22 13:46:41 · 161 阅读 · 0 评论 -
Map基本操作
package test;import java.util.Collection;import java.util.HashMap;import java.util.Map;import java.util.Set;/** Map 集合* 不能包含重复值*/public class set { public static void main(String[] args) {// 创建对象 Map<String,String> map=.原创 2022-05-08 21:55:21 · 212 阅读 · 0 评论 -
增强for循环
package test;import java.util.ArrayList;import java.util.List;/** List有序 可重复*/public class collection { public static void main(String[] args) { int[] arr={1,2,3,4,5}; for(int i:arr){ System.out.println(i); .原创 2022-05-08 21:35:38 · 159 阅读 · 0 评论 -
List用法
package test;import java.util.ArrayList;import java.util.Iterator;import java.util.List;/** List有序 可重复*/public class collection { public static void main(String[] args) {// 创建 List<String> list=new ArrayList<String>.原创 2022-05-08 21:30:42 · 116 阅读 · 0 评论 -
Collection
package test;import java.util.ArrayList;import java.util.Collection;import java.util.Iterator;public class collection { public static void main(String[] args) { Collection<String> collection = new ArrayList<String>(); .原创 2022-05-08 21:14:42 · 261 阅读 · 0 评论 -
求一串数字的峰值
import java.util.ArrayList;import java.util.List;import java.util.Scanner;import java.util.Stack;public class peak { public static void main(String[] args) { /* * 数据存入数组*/ Scanner sc=new Scanner(System.in); String.原创 2022-04-25 12:33:46 · 361 阅读 · 0 评论 -
c++_学习笔记-二进制文件操作
本篇博客简单的使用了二进制文件进行文件中字符串的筛选操作:例如:输入的字符串为ab234$df4,新生成的串为abdf思路:首先定义一个fstream fs 来实现文件io流以二进制读方式打开文件,一个字符一个字符读文件,把符合条件的字符加入到一个数组中,同时记录文件中字符的个数,和数组中的个数,之后关闭文件以二进制覆盖的方式写文件,把数组中的字符加入到文件中,关闭文件关键代码:文件读取部分:fstream fschar s; int i = 0; int co.原创 2021-11-28 21:54:02 · 544 阅读 · 0 评论 -
C++学习笔记--类和继承(+虚函数)
写在前面:在类中的虚函数说白了,就是只有本类才能调用。public: string name; string ID; Employee() {}; //构造函数 ~Employee() {}; //析构函数 string getname() { return name; } //获取名字 string getid() { return ID; } //获取工号 void setEmployee(string Name, string ID1) //可修改信息 { this-&g原创 2021-11-28 02:17:43 · 318 阅读 · 0 评论