上一页 1 ··· 6 7 8 9 10
摘要: 1. 使用两个指针 1 #include <cstdio> 2 #include <cstring> 3 4 char *reverse_str(char *str) 5 { 6 if (str == NULL || *str == '\0') { 7 return NULL; 8 } 9 char 阅读全文
posted @ 2020-08-16 17:06 wangshaodong 阅读(1599) 评论(0) 推荐(0) 编辑
摘要: 1. 命令行意味着自动化, 图形化工具提供命令行接口,就可以通过脚本语言调用工具 2. Life is short, and I love Python! 3. All problems in computer science can be solved by another level of in 阅读全文
posted @ 2020-08-16 16:36 wangshaodong 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1.Linux 环境中 已经安装pip、 命令行中网络环境不受代理限制,而且有足够的权限 sudo pip3 install pyserial 2. windows 环境中 已经安装Python3 并且python 可以从命令行中启动, 命令行网络环境受限 1> 使用浏览器,从网络下载源码包 , 比 阅读全文
posted @ 2020-08-16 14:37 wangshaodong 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 命令行模式下输入 :w !sudo tee % > /dev/null 阅读全文
posted @ 2020-08-16 11:15 wangshaodong 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 编辑 /etc/inputrc 文件添加 set bell-style none 阅读全文
posted @ 2020-08-16 11:13 wangshaodong 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Python 2.x 系列已经停止维护了, python 3.x 系列正在成为主流,尽管有些项目还是python2.x 的,之后写Python 代码为了保持兼容性,还是尽量和Python 3 标准保持一致 作为一个Python newbee 而言, python 2.x 和 3.x 的 最大的区别就 阅读全文
posted @ 2020-08-16 10:40 wangshaodong 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 排序函数 qsort // 头文件 <stdlib.h> void qsort(void *base/*数组的起始地址*/, size_t nmemb/*数组元素个数*/, size_t size/* 数组每个元素的大小*/, int (*compar)(const void *, const vo 阅读全文
posted @ 2020-08-15 23:03 wangshaodong 阅读(218) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10