摘要: # 第一步:安装binarytree包 # pip install binarytree rem二叉树 # 第二步:调用binarytree包 from binarytree import build import random #values = [0,1,2,3,4,5,6,7,None,9,1 阅读全文
posted @ 2020-01-02 15:59 liw66 阅读(619) 评论(0) 推荐(0) 编辑
摘要: # 第一步:安装pandas包 # pip install xlrd rem处理excel # pip install openpyxl rem处理excel # pip install pandas rem处理excel # 第二步:调用pandas包 import pandas as pd im 阅读全文
posted @ 2020-01-02 15:55 liw66 阅读(228) 评论(0) 推荐(0) 编辑
摘要: import os s = "java" p = "d:\lw" m = 1024 * 1024 * 1024 #查找文件名 def find_file(): for root, dirs, files in os.walk(p): for f in files: if f.find(s) != - 阅读全文
posted @ 2019-12-02 17:13 liw66 阅读(321) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<iostream> using namespace std; int main() { int a,b,c; char op; cin >> a ; cin >> b; cin >> op; switch (op){ case '+': c = 阅读全文
posted @ 2019-10-30 17:25 liw66 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<iostream> using namespace std; int main() { int line; cin >> line; string s; for (int i = 1; i <= line; ++i){ s += "*"; cou 阅读全文
posted @ 2019-10-30 17:12 liw66 阅读(232) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<iostream> using namespace std; int max(int i, int j); int main() { int i, j, k; cin >> i; cin >> j; cin >> k; int m = max(i 阅读全文
posted @ 2019-10-30 11:12 liw66 阅读(752) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<iostream> using namespace std; int main() { int i; cin >> i; if (i % 2 == 0){ cout << "偶数" << endl; } else{ cout << "奇数" << 阅读全文
posted @ 2019-10-29 17:54 liw66 阅读(2080) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<iostream> using namespace std; int main() { int i; cin >> i; int j; cin >> j; i = i + j; j = i - j; i = i - j; cout << i << 阅读全文
posted @ 2019-10-29 17:50 liw66 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<iostream> int main() { for (int i = 1; i <= 9; i++){ long k = 1; for (int j = 1; j <= i; j++){ k *= j; } printf("%d!的结果是:%d 阅读全文
posted @ 2019-10-29 11:25 liw66 阅读(712) 评论(0) 推荐(0) 编辑
摘要: @Configuration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowCredentials(true) .allowedHeaders(" 阅读全文
posted @ 2019-10-23 15:21 liw66 阅读(116) 评论(0) 推荐(0) 编辑