随笔分类 -  程序人生

常用命令
摘要:shell命令 提取特定的列 阅读全文

posted @ 2019-06-10 16:18 rainduck 阅读(96) 评论(0) 推荐(0)

Markdown syntax guide and writing on MWeb
摘要:PhilosophyMarkdown is intended to be as easy-to-read and easy-to-write as is feasible.Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as ... 阅读全文

posted @ 2017-01-04 22:32 rainduck 阅读(302) 评论(0) 推荐(0)

python中的system函数与编码
摘要:在调用os.system执行命令时,发现system不能接受unicode的命令。那么命令中却又包含以unicode表示的中文等字符怎么办?——方法就是将unicode转化为utf8path = u'我的文件.txt'cmd = 'process'cmd += ' '+ path.encode('u... 阅读全文

posted @ 2015-01-22 15:05 rainduck 阅读(793) 评论(0) 推荐(0)

Raspberry PI上操作GPIO(GPIO编程)
摘要:一 Raspberry PI的GPIO1. 什么是GPIO2. Raspberry上的GPIO介绍二Raspberry PI上编程操作GPIO1. Python操作(1) 安装环境 a.下载控制GPIO的python库:http://pypi.python.org/pypi/RPi.GPIO/0.3.1a#downloads b. 在Pi上安装python-dev: sudo apt-get install python-dev c. 解压并安装python库 tar xvzfRPi.GPIO-0.x.xx.tar.gz cdRPi.GPIO-0.x.xx sud... 阅读全文

posted @ 2012-09-22 01:44 rainduck 阅读(18701) 评论(0) 推荐(0)

几个汇编指令解析
摘要:1. call 子程序偏移量注解:子程序偏移量是指,call指令即将跳转至的子程序的地址(子程序的第一个字节)减去 call 指令读取后 CS:IP指向的指令(即,call 指令的下一指令的地址)2. STOS(STOre into String) 存入串指令 STOS DST STOSB //存放字节串 ( DI ) = AL STOSW //存放字串 ( DI ) = AX 执行操作:把AL或AX中的内容存放由DI指定的附加段的字节或字单元中,并根据DF值修改及数据类型修改DI的内容. a.在执行该指令之前,必须把要存入的数据预先存入AX或AL中,必须预置DI的初值. b.DI所指向的存储 阅读全文

posted @ 2011-08-15 01:10 rainduck 阅读(649) 评论(0) 推荐(0)

导航