码迷,mamicode.com
首页 >  
搜索关键字:line    ( 28191个结果
Cassandra查询出错
类似于如下情况: Traceback (most recent call last): File "python_del_cassandra.py", line 21, in <module> d_time = K_devdata.execute(" select dtime from device ...
分类:其他好文   时间:2016-07-04 21:49:51    阅读次数:380
linux下查看当前用户的 三个命令
linux下查看当前用户的 三个命令 1,whoami; 2,id -un; 3,who -H 可以列出当前所有的 NAME (用户名) LINE (窗口列表) TIME(开启时间) COMMENT(目录层次) (注:who 显示当前在线用户,加-H显示上边红字一栏,并且与下边信息对应) 比如: [ ...
分类:系统相关   时间:2016-07-04 20:31:57    阅读次数:162
SignalTap II 查看波形的方法
右键单击要观察的端口 >bus display format >unsigned line chart ...
分类:其他好文   时间:2016-07-04 13:33:16    阅读次数:621
css中的伪类和伪元素
伪类 a:link 未访问的链接 a:visited 浏览之后链接 a:hover 鼠标移动到链接上的表现形式 a:active 选定的连接 元素:facous 鼠标对焦时 元素:first-child 首个子对象 伪元素 元素:first-line 首行 元素: first-letter 首字母 ...
分类:Web程序   时间:2016-07-04 10:05:20    阅读次数:198
【工具使用】sublime设置换行符为unix风格
windows下sublime写的代码,换行符为/r/n,python代码转移到centos上执行老是出问题 通过自定义settings-user中default_line_endings则可以修改换行符风格,详细设置如下两图 ...
分类:其他好文   时间:2016-07-04 06:34:50    阅读次数:793
初识python 4
统计系统中剩余的内存[root@Client-1day2]#vineicheng.py#!/usr/bin/pythonwithopen(‘/proc/meminfo‘)asfd:forlineinfd:ifline.startswith(‘MemTotal‘):total=line.split()[1]continueifline.startswith(‘MemFree‘):free=line.split()[1]breakprinttotal,freeprint"%.2f"%(int(..
分类:编程语言   时间:2016-07-03 23:35:23    阅读次数:197
POJ 2350 Above Average
Description It is said that 90% of frosh expect to be above average in their class. You are to provide a reality check. Input The first line of standa ...
分类:其他好文   时间:2016-07-03 23:26:00    阅读次数:168
使用KNN对iris数据集进行分类——python
filename='g:\data\iris.csv' lines=fr.readlines()Mat=zeros((len(lines),4))irisLabels=[]index=0for line in lines: line=line.strip() if len(line)>0: list ...
分类:编程语言   时间:2016-07-03 23:23:56    阅读次数:1065
标准预处理器宏
__LINE__:当前源文件中的代码行号,十进制整数。 __FILE__:源文件的名称,字符串字面量。 __DATE__:源文件的处理日期,字符串字面量。其格式是 mmm dd yyyy(mmm是月份,如:Jan,Feb等);dd是日期,其格式为01到31的数字,一位数字的日期前面加上空格;yyyy ...
分类:其他好文   时间:2016-07-03 19:07:16    阅读次数:154
CentOS 6 下单独记录 iptables 日志
1.First,addanewchainwithareasonablename:iptables-NLOGGING2.Next,insertaruleattheappropriatepoint(hencemeusing--line-numbersabove).YoucouldreplacetheexistingREJECTatline5initsentiretyasitsfunctionalitywillbemovedintotheLOGGINGchain(whereIchangeittoaDROPanywa..
分类:其他好文   时间:2016-07-03 15:56:50    阅读次数:351
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!