摘要: “The best things in life are not things, it’s the people who make you feel loved and cared for.” “The best things in life are not things, it’s the peo 阅读全文
posted @ 2021-03-15 13:40 BoyangC 阅读(6193) 评论(0) 推荐(0) 编辑

2023年1月18日

摘要: https://faculty-web.msoe.edu/hasker/prev/16-17/webdev/ruby-debug.html 阅读全文
posted @ 2023-01-18 15:11 BoyangC 阅读(12) 评论(0) 推荐(0) 编辑
摘要: install ruby development kit. 如果这个solution解决不了可以参照链接里的其他答案,我是采用上面的方式解决的 https://stackoverflow.com/questions/42746055/error-failed-to-build-gem-native- 阅读全文
posted @ 2023-01-18 14:53 BoyangC 阅读(115) 评论(0) 推荐(0) 编辑

2022年7月18日

摘要: 调试python程序的时候, 我们可能会遇到程序发生了异常, 对于比较的简单的情况, 我们可以在异常发生的位置前面加一个合适的断点, 但如果异常发生的位置是在一个循环体内这种在前面加断电调试的方式就很浪费时间了, 下面提供两种方式让python 在发生异常的位置的停止, 保留程序现场, 可以让开发者 阅读全文
posted @ 2022-07-18 16:17 BoyangC 阅读(247) 评论(0) 推荐(0) 编辑

2022年6月30日

摘要: You might run into this error when you ... 1) Create a C++ standalone project in VS2017 (15.5 and later versions)2) Turn the C/C++ -> Language -> Conf 阅读全文
posted @ 2022-06-30 21:51 BoyangC 阅读(197) 评论(0) 推荐(0) 编辑

2022年5月27日

摘要: 最近开发的一个tool, 用户在使用的过程中发现, 如果用户输入的参数是一个相对路径, tool 就会找不到文件的位置然后报错。 举个简单例子 tool cmd 是 python test.py -p config.file py 脚本里的参数解析模块 argparse 获取到的实际参数就是 con 阅读全文
posted @ 2022-05-27 23:21 BoyangC 阅读(640) 评论(0) 推荐(0) 编辑

2021年9月26日

摘要: 先上官方文档链接 https://docs.python.org/zh-cn/3/library/calendar.html 当你打开这篇博客的时候我还是建议你先去读官方文档, 当你去使用一个东西的时候, 先去看别人写的博客一般来说能快速找到使用方法, 有些原汁原味的东西你可能体会不到的。 所以最好 阅读全文
posted @ 2021-09-26 11:06 BoyangC 阅读(99) 评论(0) 推荐(0) 编辑

2021年9月24日

摘要: python 里的string 类型是只读不可修改的, 类似于从c/c++ 中被const 修饰 下面这个实验可以验证这个特性 如果一个list里的元素是string类型, 这个元素是可以被修改的吗? 答案是可以的。 list 保存的是每个元素的引用,而不是元素本身 阅读全文
posted @ 2021-09-24 15:04 BoyangC 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 标题里提及的执行方式python的执行方式是下面两种: a) 用python 解释器运行脚本 b) 运行打包好的exe文件, 这个exe文件我是用pyinstaller生成的 针对这两种运行方式, 有时候我们需要拿到脚本的位置(a方式) 和exe的位置(b方式) 用pyinstaller打包脚本之后 阅读全文
posted @ 2021-09-24 14:57 BoyangC 阅读(575) 评论(0) 推荐(1) 编辑