上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页
摘要: 字符串1 string模块预定义字符串2 普通字符串与Unicode字符串3 只适用于字符串的操作4 原始字符串5 Unicode字符串操作符内建函数1 标准类型函数与序列操作函数2 字符串类型函数字符串内建函数字符串特有性质1 转义字符2 三引号3 字符串是不可变数据类型本文介绍P... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(767) 评论(0) 推荐(0)
摘要: Python升级已经安装的第三方库主要两步操作,查看需要升级库,升级库。如下:pip list # 列出安装的库pip list --outdated # 列出有更新的库pip install --upgrade library_name # 升级库library_name升级时将l... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(658) 评论(0) 推荐(0)
摘要: Ubuntu环境下Objective-C编译环境配置参考这里。CentOS环境下Objective-C编译环境配置参考这里。 还在继续探索中。 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(338) 评论(0) 推荐(0)
摘要: 进程控制1 获得系统进程2 终止当前进程3 终止其他进程4 进程控制4.1 获得系统进程使用toolhelp模块可以实现获取系统中当前运行当中的进程列表。思路如下,使用CreateToolhelp32Snapshot函数给当前系统内执行的进程拍快照(Snapshot),也就是获得了进... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(253) 评论(0) 推荐(0)
摘要: 开始Shell编程NT:如无特别说明,下面使用bash shell。编写脚本只需以下几步: (1) 打开编辑器,写下脚本。 (2) 给保存的脚本执行权限。 使用chmod permission your-script-name,如:$ chmod +x your-script-nam... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(119) 评论(0) 推荐(0)
摘要: 1. 自定义类型布尔值自定义的类如果定义了__nonzero__()或者__len__()且值为0,那么它们的布尔值就是Flase。2. 对象比较a is b# equivalent toid(a) == id(b)3. 标准类型内建函数type()cmp()str()repr()i... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(158) 评论(0) 推荐(0)
摘要: Linux创建线程使用int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)Linux... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(1506) 评论(0) 推荐(0)
摘要: 问题今天在安装测试websockets服务端时,运行时提示 ……error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory……Oh,... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(364) 评论(0) 推荐(0)
摘要: 直奔主题,使用git连接到Github步骤如下:1. 安装gityum install git或者sudo get-apt install git git-core2. 全局配置git config --global user.name "furzoom"git config --g... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(407) 评论(0) 推荐(0)
摘要: 1. 开始使用Python1.1 print使用str()函数显示对象,而交互式解释器调用repr()函数来显示对象。 1.2 在解释器中_表示最后一个表达式的值。 1.3 >>用来重定向输出。import sysprint >> sys.stderr, 'Fatal error: ... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(137) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页