会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大千世界没
博客园
首页
新随笔
联系
订阅
管理
2020年1月16日
如何配置root一健启动
摘要: 首先,找到图中绿色的bash.bashrc 然后,修改权限,让其可以编写 在文件夹找到bash.bashrc,打开 在最末尾加入 alias root=~/下载/root/bin/root 保存即可 最后,修改回权限 检验一下,输入 root 如图,即表示配置成功
阅读全文
posted @ 2020-01-16 16:50 大千世界没
阅读(125)
评论(0)
推荐(0)
2019年11月20日
python实现:去除空格和换行符,比较两个text文件文本内容的差异,并输出第一个差异值
摘要: # coding: utf-8#准备工作,把生成的t2.text文件通过Notepad++转成utf-8编码#输出结果为第一个存在差异的数据#每修改一次t2.text文件需要进行新一次转码import osos.chdir("D:/tesseract/t2")#更改文件目录#os.system("d
阅读全文
posted @ 2019-11-20 12:22 大千世界没
阅读(743)
评论(0)
推荐(0)
2019年10月21日
个位数统计
摘要: 我的代码: #include<iostream>#include<cstring>using namespace std;int x[10];int main(){ char *y=new char[1000]; cin>>y; int i=0; while(y[i]!=0) { x[y[i]-48
阅读全文
posted @ 2019-10-21 17:52 大千世界没
阅读(141)
评论(0)
推荐(0)
'1'和1差了48
摘要: 今天遇到了一行代码 x[y[i]-48]++; 是关于char类型的'1'和int类型的1的转换 刚开始没看懂,后来想可能是它们的位数差了48 验证代码如下 #include<iostream> using namespace std; int main(){ char a='1'; int i=1
阅读全文
posted @ 2019-10-21 17:19 大千世界没
阅读(1068)
评论(0)
推荐(0)
公告