- 博客(42)
- 收藏
- 关注
原创 【已解决】GitHub上传项目遇见open(“.vs\...“): Permission denied
【已解决】GitHub上传项目遇见open(".vs\..."): Permission denied
2022-06-15 10:54:38
1029
2
原创 【python】连接mysql
先下载pymysql (pip install pymysql)再导入(import pymysql)然后:在这里插入代码片出现报错:python连接mysql AttributeError: module ‘pymysql’ has no attribute ‘connect’ :文件名与pymysql重名...
2022-03-19 15:23:32
75
原创 Faster R-CNN
(研一新生读论文入门,简要记录)论文名称:Faster R-CNN: T owards Real-Time ObjectDetection with Region Proposal Networks论文地址:https://arxiv.org/abs/1506.01497发布期刊:Neural Information Processing Systems (NIPS)machine learning 顶级会议-2015参考:https://zhuanlan.zhihu.com/p/32404424
2022-03-19 15:22:32
686
原创 JAVA备忘
int与integer:int是基本数据类型,integer是封装数据类型。对于基本数据类型可以用’‘来对其数值进行比较,而封装数据类型’'是判断其在内存中存放的地址是否一样,使用’equals’比较他们的值是否想等。|数据类型| 封装类 | |数据类型 |封装类 ||boolean |Boolean | |int |Integer ||char |Character | |long |Long |.
2021-12-22 13:08:40
318
原创 虚拟机网络配置(ubuntu16.04)
环境准备:在VMware上克隆三台ubuntu,对其网络进行配置,使其相互ping通且连接网络1.虚拟机的配置与网络编辑设置①vmware->编辑->虚拟网络编辑器:设置网络②删除vmnet0、vmnet1保留nat模式的vmnet8,点击“更改设置”进入编辑界面:取消使用本地DHCP服务将IP地址分配给虚拟机的勾选;配置子网与掩码(可根据自己需要配置);点击nat设置设置ip网关③进入系统内部进行网络配置,点击右上角网络配置中edit connection ,点击edit按钮,
2021-11-25 10:06:10
2659
1
原创 Ubuntu系统踩坑
1.ubuntu的python自带的不可删除,不然会导致一系列配置出问题,虽可以恢复但是及其麻烦。(恢复过程百度,未详细记录)2.系统自带配置不可删除(少使用remove就是了,上了lightdom导致系统无法启动)3.系统崩了可以先不要急着清调磁盘,可以安装一个双ubuntu系统,两个并行通过另外一个系统访问损坏系统的文件,备份自己的资料文件。...
2021-04-05 14:50:20
118
原创 虚拟机配置及其网络设置
参考:https://blog.youkuaiyun.com/princesslin/article/details/99669382一、说明:要使用hadoop集群,最好使用三台电脑以上,因设备受限,故使用虚拟机上创建三台ubuntu系统的虚拟主机,这三台主机间设置网络连接,使其能够相互通信。通常命名为master和slaver1、slaver2,这样的三台主机可以搭建成hadoop集群。二、克隆:1、可以使用vmware自己创建三台主机并分别配置和安装软件,但太繁琐,感觉又得好几天,不推荐。2、可以在一台
2021-01-14 16:19:12
546
原创 201609csp
201609-01c++#include<iostream>#include<cmath>using namespace std;int main(){ int n,x1,x2,sub=0; cin>>n>>x1>>x2; sub=fabs(x1-x2); n--; while(--n){ int x3,sub2=0; cin>>x3; s
2020-08-23 21:38:50
138
原创 201604csp
201604-01c++#include<iostream>using namespace std;int main(){ int n,x1,count=0,flag=0; cin>>n>>x1; while(--n){ int x2; cin>>x2; if(x1<=x2){ if(flag==-1) count++; f
2020-08-23 21:37:58
98
原创 201509csp
201509-01c++#include<iostream>using namespace std;int main(){ int n,x1,x2,count=0; cin>>n>>x1; while(--n){ cin>>x2; if(x1!=x2){ count++; x1=x2; } } cout<<
2020-08-23 21:35:37
98
原创 201503-01csp
201503-01c++#include<iostream>using namespace std;const int N=1000;int s[N+1][N+1];int main(){ int n,m; cin>>n>>m; for(int i=0;i<n;i++) for(int j=0;j<m;j++) cin>>s[i][j]; for(int j=m-
2020-08-19 22:24:52
91
原创 csp-201412
csp201412-01c++#include<iostream>using namespace std;const int N=1000;int s[N+1],t[N+1];int main(){ int n,x,_max=0; cin>>n; for(int i=0;i<n;i++){ cin>>x; t[i]=n; s[x]++; cout<<s[x]<<' '; } return 0;}
2020-08-18 22:43:44
102
原创 csp-201409
csp201409-01 c++#include<iostream>using namespace std;const int N=1000;int s[N+1];int main(){ int n,x,count=0; cin>>n; for(int i=0;i<n;i++){ cin>>x; s[i]=x; } for(int j=0;j<n;j++){ f
2020-08-17 22:30:27
82
原创 csp-201403
csp201403-01#include<iostream>#include<cmath>using namespace std;const int N=1000;int s[N+1];int main(){ int n,x,count=0; cin>>n; for(int i=0;i<n;i++){ cin>>x; s[i]=x; } for(int j=0;j<
2020-08-16 19:37:21
148
原创 csp-201312
csp2013-01 c++#include <iostream>using namespace std;const int N=10000;int s[N+1];int main(){ int n,x,_max=0; cin>>n; while(n--){ cin>>x; s[x]++; _max=max(_max,x); } int k=0; for(int i=1; i&l
2020-08-15 22:44:25
129
原创 python
pythonstrip(chart):去除头尾字符lstrip(chart):去除头部字符rstrip(chart):去除尾部字符print(‘We are the {} who say “{}!”’.format(‘knights’, ‘Ni’))1、读取txt文本出现“ ‘gbk’ codec can’t decode byte 0xbf in position 2: illegal...
2020-06-01 21:09:10
514
原创 tensorflow的自我学习问题
①module ‘tensorflow’ has no attribute ‘initialize_all_variables’解决:initialize_all_variables改成tf.compat.v1.global_variables_initializer()②module ‘tensorflow’ has no attribute ‘Session’解决:tf.'Session...
2020-06-01 21:08:57
444
1
原创 spring-Mybatis
①、xml文件中的&要使用&②、Unknown character set index for field ‘255’ received from server.原因:MYSQL 5.5 之前, UTF8 编码只支持1-3个字节;从MYSQL5.5开始,可支持4个字节UTF编码utf8mb4;解决办法:更换jar包至mysql-connector-java-5.1.46.ja...
2020-06-01 21:08:42
296
原创 pytorch实现numpy与tensor之间的转换
1.tensor转numpy:a = torch.ones(2,2)b = a.numpy()c=np.array(a) #也可以转numpy数组print(type(a))print(type(b))print(a)print(b)结果<class ‘torch.Tensor’><class ‘numpy.ndarray’>tensor([[1., 1.],[1.,...
2020-04-22 11:43:28
3239
转载 【Python】实现自动发送邮件
需要用到的模块:smtplib,email提醒!QQ 邮箱一般默认关闭SMTP服务,我们得先去开启它。请打开https://mail.qq.com/,登录你的邮箱。然后点击位于顶部的【设置】按钮,选择【账户设置】,然后下拉到这个位置。# smtplib 用于邮件的发信动作import smtplibfrom email.mime.text import MIMEText# email 用...
2020-04-20 12:43:22
295
原创 【python】连接mysql
先下载pymysql (pip install pymysql)再导入(import pymysql)然后:#pymysql 的简单使用#建立连接conn=pymysql.connect(host="127.0.0.1",user="root",password="******",db="spider_data")#创建游标,默认是元组型cursor=conn.cursor()sql...
2020-04-19 16:31:52
123
原创 【python】selenium获取浏览器网页的元素
import requestsurl="https://voice.baidu.com/act/newpneumonia/newpneumonia/?from=osari_pc_1#tab2"res=requests.get(url)print(res.text)from selenium.webdriver import Chrome,ChromeOptionsimport time...
2020-04-19 16:02:38
1117
转载 【python】逻辑回归与交叉熵
转载自:https://blog.youkuaiyun.com/huanyingzhizai/article/details/89929570
2020-04-10 15:05:39
291
原创 tomcat启动无效
tomcat清除服务器历史数据:remove所有tomcat里面所有工程,再右键cleantomcat启动显示以下警告之后没有反应:log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).log4j:WARN Please initialize the ...
2020-04-06 20:31:04
710
原创 spring-数据库连接
XML文件报错cvc-complex-type.2.4.a: Invalid content was found starting with element 'tx:attr将“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/sp...
2020-02-19 20:35:39
133
原创 MySQL——启动报错:TCP/IP, --shared-memory, or --named-pipe should be configured on NT OS
MySQL——启动报错:TCP/IP, --shared-memory, or --named-pipe should be configured on NT OS解决办法:my.ini 文件添加行
2019-12-22 14:06:31
413
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人