自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (4)
  • 收藏
  • 关注

原创 群码Python实现及应用(CRC校验)

群码Python实现 模2加法 模2减法 模2乘法 模2除法 模2取模 CRC校验

2020-04-04 21:20:03 542

原创 1. data cleaning

import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsfrom scipy.interpolate import lagrange# plt.rcParams['font.sans-serif']=['SimHei']df = pd.read_csv('data...

2020-03-14 20:53:01 308

原创 VSCode实现cmake与msbuild一键操作

{ "version": "2.0.0", "tasks": [ { "label": "Build", "type": "shell", "command": "mkdir build\r\ncd build\r\ncmake ..\r\nMSBuild ALL_BUILD.vcxproj -...

2019-10-16 08:12:14 3431

原创 正则表达式梳理

正则表达式梳理正则表达式中用转义字符表示特定的匹配对象转义字符匹配对象.匹配所有字符(换行符除外)\d数字\w字母、数字或下划线\s空格、制表符\.句点\( 与 \)小括号\[ 与 \]方括号\{ 与 \}花括号\t制表符\n换行符\D数字以外的任何字符\W字母、数字和下划线以外的任何...

2019-09-02 16:48:42 259

原创 Python字典Dict 梳理

Create:Dict = {}newDict = Dict.copy(){x:x**2 for x in range(1, 11) if x % 2 == 0}{k:v for k in List1 for v in List2}AddTerm:Dict[key] = valueDict.update(anotherDict) 将anotherDict中的每一项加入到Dict中...

2019-09-02 14:56:41 182

原创 Python列表List 梳理

Python List 梳理Create:List = list(range(s, t, step))List = []List.copy()List[:][x**2 for x in range(1, 11) if x % 2 == 0][m + n for m in [2, 4] for n in [2, 5] ]AddTerm:List.append(value)Lis...

2019-09-02 14:41:45 201

原创 VSCode Python格式化定制

|E221|允许运算符前多个空格||E222|允许运算符后多个空格||E262|不在行注释的#后添加空格||E265|不在块注释的#后添加空格|| E402 |不将import集中到文件开头 || E501 |不对过长行做处理 |

2019-08-25 11:43:54 1344

原创 爬取新浪国内新闻及热评

爬取sina国内新闻及热评import requestsimport jsonimport reimport pandasfrom bs4 import BeautifulSoupfrom datetime import datetime# import sys# sys.stdout = open('1.out', 'w', encoding='utf-8')commentU...

2019-08-04 08:46:25 911

原创 区间交集

区间交集#include <bits/stdc++.h>using namespace std;int main() { int n, ans = 0; // ans存储最终结果 scanf("%d", &n); vector<pair<int, int>> v1(n), v2(n); //分别存储两个区间 for ...

2019-08-01 15:40:15 2143

原创 回文串问题

回文串问题回文串判定bool judge(string s) { string t(s.rbegin(), s.rend()); return s == t;}插入字符生成回文串#include <bits/stdc++.h>using namespace std;const int maxn = 1005;int n, m;int d[ma...

2019-08-01 15:29:17 2191

原创 DP字符串类型题汇总

DP字符串类型题汇总最长公共子串(LCS)//输出A和B最长公共子串的长度, 并打印结果#include <bits/stdc++.h>using namespace std;const int maxn = 1005;int d[maxn][maxn];char a[maxn], b[maxn];int la, lb;int main() {#ifdef LO...

2019-08-01 15:20:24 1846

原创 二分法

二分法切绳子#include <bits/stdc++.h>using namespace std;const double eps = 1e-6;int n, k;double a[10005];int main() {#ifdef LOCAL freopen("E:\\Cpp\\1.in", "r", stdin);#endif scanf...

2019-08-01 15:07:49 1570

原创 暴力法

暴力法给出n,0-9数字每个使用一次, 组成两个5位数, 使abcde/fghij=n#include <bits/stdc++.h>using namespace std;char ans[11] = "0123456789";char s[11];int main() {#ifdef LOCAL freopen("E:\\Cpp\\1.in", "r",...

2019-08-01 15:01:01 1606

原创 解决TensorFlow binary was not compiled to use AVX2 附whl文件

解决“Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2”pip install tensorflow直接安装的包过于通用,在现在大部分电脑上都会报“Your CPU supports instructions that this TensorFlow binar...

2019-07-28 19:08:45 6075 2

原创 Python pip使用国内镜像

Python pip使用国内镜像Windows:C:\Users\dell\AppData\Roaming\下新建文件夹,改名为pip,进入,新建txt,打开,输入:[global]index-url=https://pypi.tuna.tsinghua.edu.cn/simple/在VSCode等编辑器中打开,改全名为pip.ini(在文件资源管理器中无法改扩展名,没有用),保存L...

2019-07-28 19:01:26 3586

原创 PTA 地铁一日游

#include <algorithm>#include <cstdio>#include <map>#include <queue>using namespace std;const int maxn = 205;const int INF = 0x3f3f3f3f;int d[maxn][maxn];int terminal[ma...

2019-07-26 19:56:42 4864

转载 手写快速排序 C++

快速排序#include <iostream>using namespace std;int Parition(int a[], int low, int high) { int pivot = a[high]; int i = low; for (int j = low; j < high; ++j) { // j指向当前遍历元素...

2019-07-26 19:50:18 3797

原创 快速幂 快速幂求模

快速幂 快速幂求模#include <bits/stdc++.h>using namespace std;const int maxn = 1005;typedef long long ll;ll b, p, k; //底数,指数,模数ll qpower(ll b, ll n) { ll ans = 1; while (n > 0) { ...

2019-07-26 19:47:41 3035

原创 VSCode 自定义代码片段 C++

VSCode 自定义代码片段 高效编程VSCode 可以很方便的自定义代码片段,一起来把自己常用的代码编成模板吧操作过程: 1. 依次点击 文件–首选项–用户代码片段,之后效果如图2.如果你想在所有工作区使用,选择新建全局代码片段如果你想限定作用域,选择新建文件夹的代码片段然后给片段文件起个名字,保存会有以下内容自动生成,这是使用说明,你可以选择全部删掉{ // Place y...

2019-03-30 18:30:22 7128 4

原创 VSCode一步更改C/C++格式化方式

VSCode一步更改C/C++格式化方式VSCode默认的格式化方式是下面这样:#include &lt;cstdio&gt;using namespace std;const int maxn = 1005;int a[maxn];char s[maxn];bool read(int *a, int &amp;n){ int cnt = 0; if (!gets(...

2019-03-14 09:23:19 11846 3

原创 VSCode C/C++编程实现重定向+指定exe生成位置

VSCode C/C++编程Code-runner实现重定向+指定exe生成位置首先用以下代码替换settings.json里面&quot;code-runner.executorMap&quot;的原代码(原来没有的话直接粘贴进去):&quot;code-runner.executorMap&quot;: { &quot;cpp&quot;: &quot; cd $dir &amp;amp;&amp;amp; g+

2019-03-14 09:08:53 11939 16

原创 POJ2635同余模定理与千进制

POJ2635同余模定理与千进制基础知识点:同余模定理所谓的同余,顾名思义,就是两个(或多个)数对同一个数做取模运算所得结果相同。如 a = 11 与 b = 6 对 n = 5 同余,用符号表示就是 a mod n = b mod n = 1 或者 a%n = b%n = 1。

2019-03-14 08:22:03 3247

tensorflow-2.0.0-cp37-cp37m-win_amd64.whl

解决“Your CPU supports instructions that this TensorFlow binary was not compiled to use AVX2”, tensorflow-2.0.0-cp37-cp37m-win_amd64.whl(Windows CPU版 Python3.7)

2019-10-28

Blockchain.pdf

Ultimate guide to understanding blockchain, bitcoin, cryptocurrencies, smart contracts and the future of money.

2019-07-30

torchvision-0.3.0-cp37-cp37m-win_amd64.whl

torchvision 主要包含以下三部分: models : 提供深度学习中各种经典的网络结构以及训练好的模型,包括Alex Net, VGG系列、ResNet系列、Inception系列等; datasets:提供常用的数据集加载,设计上都是继承torch.utils.data.Dataset,主要包括MMIST、CIFAR10/100、ImageNet、COCO等; transforms: 提供常用的数据预处理操作,主要包括对Tensor及PIL Image对象的操作。

2019-07-30

tensorflow-1.14.0-cp37-cp37m-win_amd64.whl

解决“Your CPU supports instructions that this TensorFlow binary was not compiled to use AVX2”, tensorflow-1.14.0-cp37-cp37m-win_amd64.whl(Windows CPU版 Python3.7)

2019-07-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除