摘要:
替换字典值,路径中的符号 >>> a={"cover": "cover_images\\test.png"} >>> >>> a=eval(str(a).replace("\\\\","/")) >>> >>> print(a) {'cover': 'cover_images/test.png'} 阅读全文
posted @ 2022-12-11 20:20
悟透
阅读(327)
评论(0)
推荐(0)
摘要:
注意,libc是系统底层库,每条命令执行都会调用,所以请谨慎修改!!! 注意,libc是系统底层库,每条命令执行都会调用,所以请谨慎修改!!! 注意,libc是系统底层库,每条命令执行都会调用,所以请谨慎修改!!! 修改错误会导致系统命令行和其他界面失效,启动系统时报错。 制作 ubuntu 的启动 阅读全文
posted @ 2022-12-06 13:16
悟透
阅读(2777)
评论(0)
推荐(0)
摘要:
make 时总提示 “Makefile:142: recipe for target 'xxx' failed ” 解决方法: 路径里,不要在有中文的路径 阅读全文
posted @ 2022-12-06 13:00
悟透
阅读(1317)
评论(0)
推荐(0)
摘要:
问题: 如何将两个数字拼接 解决方法:将整形数字转成字符串拼接后,在转回整形。 >>> a = 1 >>> b = 2 >>> c = str(a) + str(b) >>> print(int(c)) 12 阅读全文
posted @ 2022-12-02 23:33
悟透
阅读(457)
评论(0)
推荐(0)
摘要:
错误:NameError: name 'getopt' is not defined 原因:没有引入模块,脚本里添加下面内容 import getopt 错误:NameError: name 'argv' is not defined 原因:没有给 main() 函数传入 argv 参数。即便多次跳 阅读全文
posted @ 2022-12-02 14:39
悟透
阅读(291)
评论(0)
推荐(0)
浙公网安备 33010602011771号