Linux?c?进程管理:
?
1.??????创建进程:
???????system函数:
????????int?system(const?char*filename);
???????????????????????????????????...
分类:
系统相关 时间:
2014-07-22 09:10:35
阅读次数:
274
1、使用文件 #?encoding:?utf-8
#?!/usr/bin/python
#?Filename?:?helloworld.py
peom?=?‘‘‘如梦令?李清照
常记溪亭日暮,
沉醉不知归路。
兴尽晚回舟,
误入藕花深处。
争渡,争渡,
惊起一滩鸥鹭。‘...
分类:
编程语言 时间:
2014-07-22 08:31:34
阅读次数:
222
进入vi的命令? vi filename :打开或新建文件,并将光标置于第一行首? vi +n filename :打开文件,并将光标置于第n行首? vi + filename :打开文件,并将光标置于最后一行首? vi +/pattern filename:打开文件...
分类:
系统相关 时间:
2014-07-22 08:25:34
阅读次数:
335
windows使用gbx(gb2312,gbk,gb18030我也不知道是哪个)对文件名及文件路径进行编码保存。打开文件的函数中使用诸如open(filename.encode(‘gbk‘))可以很好的解决。 #coding:utf8
if __name__ == ‘__main__‘:
...
分类:
编程语言 时间:
2014-07-21 10:16:35
阅读次数:
285
一些例子。1、显示gopher帐号所在行至最后一行。awk‘/^gopher/{row=NR;while(getline<"passwd"){++i;FS=":";if(i>=row){print$0}}}‘passwdgetline<"filename"若读取成功,则返回非0,当读文件完后,会返回0。awk-F:‘NR==FNR{if($1~/^gopher/){row=NR};next}{if(FNR>..
分类:
其他好文 时间:
2014-07-20 15:31:51
阅读次数:
353
作用:
批处理中调用另一个批处理或调用行号后的所有命令
格式:
call [FileName] [:label]
demo:
call.bat:
@echo off
echo 开始调用called
type hello.txt
echo 结束调用called
test.bat
@echo off
echo 准备调用called...
Ubuntu常用命令大全查看软件xxx安装内容#dpkg -L xxx查找软件#apt-cache search 正则表达式查找文件属于哪个包#dpkg -S filename apt-file search filename查询软件xxx依赖哪些包#apt-cache depends xxx查询软...
分类:
其他好文 时间:
2014-07-19 09:13:07
阅读次数:
278
yuminstall-ytftp*xinetd"*dhcp*"nfs-utils-*配置DHCP服务器的配置文件[root@localhosttftpboot]#vi/etc/dhcpd.conf#DHCPServerConfigurationfile.#see/usr/share/doc/dhcp*/dhcpd.conf.sample#see‘man5dhcpd.conf‘ddns-update-styleinterim;ignoreclient-updates;filename"/px..
分类:
其他好文 时间:
2014-07-19 02:16:55
阅读次数:
231
Sub OneTxt() '打开一个txt文件 Dim Filename As Variant, extLine&, mArr() As String Dim i%, j% ChDir ThisWorkbook.Path Filename = Application.GetO...
分类:
其他好文 时间:
2014-07-18 14:29:21
阅读次数:
149
Sub OneTxt() '打开一个txt文件 Dim Filename As Variant, extLine&, mArr() As String Dim i%, j%, txtpath As String Dim txtname As Variant C...
分类:
其他好文 时间:
2014-07-18 14:15:36
阅读次数:
205