自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 问答 (1)
  • 收藏
  • 关注

原创 【解决pycharm远程运行服务器连接报错问题】TypeError: an integer is required (got type bytes)

.pycharm_helpers/third_party/thriftpy/_shaded_thriftpy/_compat.py 直接用下面的代码替换原文件代码即可 # -*- coding: utf-8 -*- """ thriftpy._compat ~~~~~~~~~~~~~ py2/py3 compatibility support. """ from __future__ import absolute_import import platform imp.

2022-05-03 21:21:51 918

原创 cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-1syr35c1/opencv/modules/imgcodecs/src/loadsave.cpp:753:

root@nxin:~# pip uninstall opencv-python-headless WARNING: Skipping opencv-python-headless as it is not installed. root@nongxin:~# pip install -U opencv-python==3.4.4.19 不再报错 参考: 解决问题:cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-jhawztrk/opencv/module.

2021-10-10 22:47:06 2880

原创 报错FileNotFoundError

Traceback (most recent call last): File "<input>", line 1, in <module> File "D:\Program\JetBrains\PyCharm 2019.1.3\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars.

2021-08-11 12:58:38 3574 6

原创 nohup: 无法运行命令‘Command‘: 没有那个文件或目录

使用下面代码 nohup `python projects/SparseRCNN/train_net.py --num-gpus 2 --config-file projects/SparseRCNN/configs/sparsercnn.res50.100pro.3x.yaml` & 报错: -- Process 1 terminated with the following error: Traceback (most recent call last): File "/r...

2021-04-21 22:06:58 3102 1

原创 报错FloatingPointError: Loss became infinite or NaN at iteration=1099!

报错FloatingPointError: Loss became infinite or NaN at iteration=1099! [04/01 15:05:09] d2.engine.train_loop ERROR: Exception during training: Traceback (most recent call last): File "/root/detectron2/detectron2/detectron2/engine/train_loop.py", line 138

2021-04-01 18:39:27 3357

原创 将Linux服务器上的mysql数据库表结构和数据导出

首先进入mysql的目录下,这里是 /etc/mysql 然后使用mysqldump命令 mysqldump -u用户名 -p 数据库名> /目标路径/导出文件名.sql; eg: 目标路径下查看生成的.sql文件

2020-06-14 14:33:36 841

原创 mysql 设置如果字段为1则显示“已完成”,字段为0则显示“未完成”

查询option表中的flag字段,若flag=1,表示已完成,若flag=0,表示未完成。SQL语句如下: select option_no, (case when flag=1 then '已完成' else '未完成' end) as flag from option;

2020-06-02 11:56:21 6238

原创 数据库 ERROR 1215 (HY000): Cannot add foreign key constraint错误的解决

首先确定以下: 0.外键字段的参照字段必须是外表的主键。 1.保证字段类型、长度一致。 修改字段类型 alter table 表名 modify 字段名 新数据类型; 比如:将user表的id列的原数据类型int(10)类型修改为int(10)unsigned类型 alter table user modify int unsigned; 2.主表与外表的引擎一致。 查看引擎 show create table 表名; 3.保证字段的字符集一致。 查看MySQL支持的...

2020-05-24 16:42:44 1012

原创 CCF_201912-2_回收站选址【100分 C++】

#include <iostream> #include <cstring> using namespace std; typedef struct Node { long x; long y; int flag=0;//若是4,表示合格 int score=0; } Node...

2020-02-26 23:49:44 389

原创 CCF_201912-1_报数 【100分 C++】

#include <iostream> #include <cstring> #include <stdio.h> using namespace std; int checkSeven(int x) { // 7的倍数 if(x%7==0) return 1; //含有7 ...

2020-02-26 23:43:09 285

空空如也

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

TA关注的人

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