logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

[python3][经验总结]文件操作之换行回车陷阱

起因今天使用python生成的题目样例时,出现了字符串匹配有误的问题。经过长达几个小时的排查后,最终确定是python的换行回车的问题。

#unix#linux#python +1
C++取反符号及原码反码补码

C++按位取反符号和原码反码补码的理解。

文章图片
#c++#开发语言#后端
解决Virtualbox宿主机与虚拟机无法ping通

众所周知,虚拟机需要设置为桥接模式,才可以实现像真机一样接入网络,从而和宿主机实现相互通信。然而,在我将VirtualBox虚拟机设置为桥接模式后,却出现虚拟机和宿主机依旧无法相互ping通的问题。如下图所示。

#网络#计算机网络#虚拟机 +1
[错误分析][python3] ‘int‘ object does not support item assignment

快速查看解决方案错误提示Traceback (most recent call last):File “a.py”, line 9, in <module>v[i],w[i] = map(int,input().split())TypeError: ‘int’ object does not support item assignment错误代码N = 1010f = [[0] * N

#python#bug
[错误分析][Error]no match for ‘operator<<‘无匹配的左移运算符

[Error]no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘plural’)先看一下可能引发此错误的代码#include<iostream>using namespace std;class plural{private:double s,x;public:plural(doub

#c++
[错误分析][Error]no match for ‘operator<<‘无匹配的左移运算符

[Error]no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘plural’)先看一下可能引发此错误的代码#include<iostream>using namespace std;class plural{private:double s,x;public:plural(doub

#c++
[错误分析][python3] ‘int‘ object does not support item assignment

快速查看解决方案错误提示Traceback (most recent call last):File “a.py”, line 9, in <module>v[i],w[i] = map(int,input().split())TypeError: ‘int’ object does not support item assignment错误代码N = 1010f = [[0] * N

#python#bug
到底了