码迷,mamicode.com
首页 >  
搜索关键字:commands    ( 1138个结果
匿名类型与Select方法实现自定义对象插入局部表结构中
在提取局部表结构数据时,通过Select选取需要的字段,如下句,此时其实产生了一个不用于_menuMan的原新数据类型new { c.SYS_COMMANDS_ID,c.TXT_COMMANDTITLE },这样的类型就叫匿名类型 var comdList = _menuMan.Load(c => ...
分类:其他好文   时间:2017-09-09 20:54:27    阅读次数:176
python常用
import commands,os,sys msg = commands.getstatusoutput('ls -l') print msg ~ ...
分类:编程语言   时间:2017-09-09 18:17:37    阅读次数:123
基于Redis的简单分布式锁的原理
参考资料:https://redis.io/commands/setnx 加锁是为了解决多线程的资源共享问题。Java中,单机环境的锁可以用synchronized和Lock,其他语言也都应该有自己的加锁机制。但是到了分布式环境,单机环境中的锁就没什么作用了,因为每个节点只能获取到自己机器内存中的锁 ...
分类:其他好文   时间:2017-09-08 16:25:40    阅读次数:192
centos7之saltstack安装
查阅来自salt官网:http://docs.saltstack.cn/topics/installation/rhel.html To install using the SaltStack repository: Run one of the following commands based o ...
分类:其他好文   时间:2017-09-08 09:58:54    阅读次数:397
redis lua
https://github.com/nrk/redis-lua/http://www.cnblogs.com/huangxincheng/p/6230129.htmlhttps://redis.io/commands/eval
分类:其他好文   时间:2017-09-04 22:47:02    阅读次数:165
sed 随笔
1)sed 功能说明 sed 全称 stream editor 基本功能 增删改查 过滤 取行 语法格式: sed [options] [sed-commands] [input-file] sed 选项 sed命令 输入文件 input-file 可以是标准输入 也可以是 文件 ~~~~~~~~~ ...
分类:其他好文   时间:2017-08-31 09:41:04    阅读次数:117
Linux-命令-parted
命令:parted disk [root@Atlantis ~]# parted /dev/sdb GNU Parted 2.1Using /dev/sdbWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) h ...
分类:系统相关   时间:2017-08-30 00:50:53    阅读次数:133
使用subprocessm模块管理进程
subprocess被用来替换一些老的模块和函数,如:os.system、os.spawn*、os.popen*、popen2.*、commands.*。 subprocess的目的就是启动一个新的进程并且与之通信。 1.Popen subprocess模块中只定义了一个类: Popen。可以使用P ...
分类:系统相关   时间:2017-08-28 19:54:42    阅读次数:223
ArcGIS Engine commands About built-in commands, menus, palettes, multi-items, and toolsets
ArcGIS Engine commands ArcGIS Engine commands ArcGIS Engine commands About built-in commands, menus, palettes, multi-items, and toolsets The informati ...
分类:其他好文   时间:2017-08-23 13:34:40    阅读次数:216
shell中的循环语句
for语法格式 for var in list;do commands done 其中list可以包含: 1) 直接写 2)变量 在shell执行的时候会进行变量替换,上面的list变量替换之后,for循环的形式和1中的形式一模一样。但是如果为$list加上了引号,即如果写为下面的形式: shell ...
分类:系统相关   时间:2017-08-22 12:27:13    阅读次数:257
1138条   上一页 1 ... 37 38 39 40 41 ... 114 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!