会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xzh-personal-issue
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
下一页
2023年3月2日
Python设置字符串颜色
摘要: 使用\033[3表示字体颜色,\033[4表示背景色。 示例 print("\033[31;1mhello") print("\033[32;1mhello") print("\033[33;1mhello") print("\033[34;1mhello") print("\033[35;1mhe
阅读全文
posted @ 2023-03-02 14:00 心比天高xzh
阅读(75)
评论(0)
推荐(0)
2023年3月1日
正则表达式不包含字符串
摘要: ^((?!hede).)*$可以匹配不包含字符串hede的行 参考链接
阅读全文
posted @ 2023-03-01 10:33 心比天高xzh
阅读(28)
评论(0)
推荐(0)
2023年2月28日
makefile 使用指令
摘要: #使用函数 例如定义函数 remove_quote=$(patsubst "%",%,$(1)) 将进来参数去掉引号。 使用时out = $(remove_quote,$(test)) #filter-out $(filter-out pattern,text) 过滤掉字串“TEXT”中所有符合模式
阅读全文
posted @ 2023-02-28 15:15 心比天高xzh
阅读(107)
评论(0)
推荐(0)
2023年2月27日
python报错Non-ASCII character
摘要: python test.py遇到报错如下 SyntaxError: Non-ASCII character '\xe4' in file produce_xml.py on line 6, but no encoding declared; see http://python.org/dev/pep
阅读全文
posted @ 2023-02-27 13:58 心比天高xzh
阅读(102)
评论(0)
推荐(0)
python中 的正则表达式匹配问题
摘要: html与Markdown中 表示空格,但使用文件读取时可以单纯当做 字符处理,而不是当做空格处理。
阅读全文
posted @ 2023-02-27 13:55 心比天高xzh
阅读(73)
评论(0)
推荐(0)
2023年2月24日
Ubuntu中将设备与usb软连接绑定
摘要: #Ubuntu中usb设备的端口默认设置 Ubuntu中所有的usb口以/dev/ttyUSB*的形式存在。按照接插线顺序,依次赋值为ttyUSB0,ttyUSB1。 当拔掉某个端口时,其余端口并不会发生改变,例如ttyUSB0,ttyUSB1对应两个设备,拔掉ttyUSB0的设备,剩余设备依然对应
阅读全文
posted @ 2023-02-24 18:44 心比天高xzh
阅读(604)
评论(0)
推荐(0)
2023年2月21日
git使用
摘要: 代码指令说明 git branch 查看本地当前所在分支,并且在当前分支前面加“*”号标记 git branch -a 加上-a参数,可以查看远程分支,远程分支会用红色表示出来(开了颜色支持的前提下) git checkout -b master origin/master 将远程分支与本地分支联系
阅读全文
posted @ 2023-02-21 15:38 心比天高xzh
阅读(61)
评论(0)
推荐(0)
2023年2月16日
verilator下载与使用
摘要: 参考官网https://verilator.org/guide/latest/example_cc.html#example-c-execution #下载整个步骤 #示例使用 ##main.cpp #include <stdio.h> #include "Vtop.h" #include "ver
阅读全文
posted @ 2023-02-16 14:46 心比天高xzh
阅读(99)
评论(0)
推荐(0)
Ubuntu 添加ssh key
摘要: #遇到问题 git clone报错,显示没有权限。 #创建ssh key 运行ssh-keygen -t rsa -b 4096 -C "邮箱" 回车三次,ssh key放在~/.ssh的默认文件夹下,不设密码。 #复制ssh key内容 cat ~/.ssh/id_rsa.pub 将显示内容复制
阅读全文
posted @ 2023-02-16 13:54 心比天高xzh
阅读(129)
评论(0)
推荐(0)
2023年2月13日
关于shell中的while文本重定向问题
摘要: #!/bin/bash cat vscode_tutor.txt | while read line do echo $line > hello.txt done 那么重定向第一次过后,就会跳出while循环。只会把vscode_tutor.txt的第一行输出到hello.txt。 要想完整输出代码
阅读全文
posted @ 2023-02-13 19:39 心比天高xzh
阅读(58)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
下一页
公告