package array; import java.util.Arrays; public class ArrayChapter06 { public static void main(String[] args) { //冒泡排序 //1.比较数组中,两个相邻的元素,如果第一个数比第二个数大,我 ...
分类:
编程语言 时间:
2020-07-20 22:32:24
阅读次数:
72
package cn.tedu.io; import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import j ...
分类:
其他好文 时间:
2020-07-20 13:31:00
阅读次数:
86
import matplotlib.pyplot as plt plt.rcParams["font.family"] = 'SimHei' # 将字体改为中文 # plt.figure(num='图名', figsize=(7, 5)) plt.figure(num='图名') plt.subpl ...
分类:
其他好文 时间:
2020-07-20 00:02:52
阅读次数:
93
前期准备 下载并安装Git linux sudo apt-get install git win 下载应用程序,安装即可 设置用户名和email地址 git config --global user.name "Your Name" git config --global user.email "e ...
分类:
其他好文 时间:
2020-07-19 23:15:54
阅读次数:
69
如果还没安装virtualenv,通过pip安装 pip3 install -i https://pypi.doubanio.com/simple/ virtualenv conda版的python 创建conda虚拟环境 conda create -n environment_name pytho ...
分类:
系统相关 时间:
2020-07-19 23:11:02
阅读次数:
73
03-树3 Tree Traversals Again (25分) An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that w ...
分类:
其他好文 时间:
2020-07-19 23:08:36
阅读次数:
84
模板: ditu[x1][y1]++; ditu[x2+1][y1]--; ditu[x1][y2+1]--; ditu[x2+1][y2+1]++; for(int i=1;i<=a;i++) for(int j=1;j<=b;j++) dp[i][j]=dp[i-1][j]+dp[i][j-1] ...
分类:
其他好文 时间:
2020-07-19 18:05:32
阅读次数:
73
在开始之前,首先要说明这几点: 1.在Python中,通常有这几种方式来表示时间:1)时间戳 2)格式化的时间字符串 3)元组(struct_time)共九个元素。由于Python的time模块实现主要调用C库,所以各个平台可能有所不同。2.UTC(Coordinated Universal Tim ...
分类:
编程语言 时间:
2020-07-19 17:47:28
阅读次数:
93
Scanner类的功能:可以实现键盘输入数据,到程序当中。引用类型的一般使用步骤:1. 导包import 包路径.类名称;如果需要使用的目标类,和当前类位于同一个包下,则可以省略导包语句不写。只有java.lang包下的内容不需要导包,其他的包都需要import语句。2. 创建类名称 对象名 = n ...
分类:
编程语言 时间:
2020-07-19 16:34:02
阅读次数:
112
需求: Microsoft Excel是目前办公中使用最频繁的软件,其数据格式为xls,xlsx,一种非常常用的电子表格,小学某班成绩,记录在excel文件中: 姓名 语文 数学 外语 李雷 95 99 96 韩梅 98 100 93 张峰 94 95 95 ... 利用python读写excel, ...
分类:
其他好文 时间:
2020-07-19 16:12:40
阅读次数:
70