-
-
...每一行后面增加一空行 #sed 'G' passwd #awk 'NR;{print ""}' passwd #awk '{print $0 "\n"}' passwd #awk '{printf("%s\n\n",$0)}' passwd (在每一行后面增加一空行 ) #awk 'NR{print $0 "\n"}' passwd #awk '1;{print ""}' passwd #awk ...
-
-
...se(pos_dict, last, curr, node_list, prev , i, count, flag):
print 'last = ',
print last
print 'curr = ',
print curr
if last == curr:
print 'last = curr, bbye'
return
...
-
-
... sides_change >= 4:
if sides_change != 6:
print("change sides from 6 to ", sides_change, " !")
else:
# added else clause for printing a message that sides set to 6
print("sides set to 6")
self.sides = sides_...
-
-
...p; "c = b = 2 # 多变量赋值\n",
"print(a)\n",
"print(b, c)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
...
-
-
...ned'] = 1
db.artical_tag.save(artical_tag)
# print(artical_content)
artical_content = removeLabel(artical_content)
artical_content = jiebacut(artical_content)
artical_content = removeStopWords(artical_content)
...
-
-
#!/bin/bash#查看僵尸进程ps -al | gawk '{print $2,$4}' | grep Z查看uptime获取在线用户数uptime | sed 's/user.*$//' | gawk '{print $NF}'#查看磁盘实用百分比df -h /dev/sda1 | sed -n '/% \//p' | gawk '{ print $5 }'
-
-
...MTIME CurrentTime;
LCD_Initial();
Initial_DS1302();
GotoXY(0,0);
Print(" www.ourhc.cn");
GotoXY(0,1);
Print("Time: ");
while(1)
{
DS1302_GetTime(&CurrentTime);
TimeToStr(&CurrentTime);
GotoXY(6,1);
Print(CurrentTime.TimeString);
Delay1ms(400);
}
}
-
-
...t absolute_import
from __future__ import division
from __future__ import print_function
SEED=1234
import numpy as np
import math
from matplotlib import pyplot as plt
np.random.seed(SEED)
import keras
from keras import backend as K
import tensorflow as tf
import os, shutil, scipy.io
fro...
-
-
...ure_ssh.sh
secure_ssh.sh
#! /bin/bash
cat /var/log/secure|awk '/Failed/{print $(NF-3)}'|sort|uniq -c|awk '{print $2"="$1;}' > /usr/local/bin/black.list
for i in `cat /usr/local/bin/black.list`
do
IP=`echo $i |awk -F= '{print $1}'`
NUM=`echo $i|awk -F= '{print $2}'`
if [ ${#NUM} -gt...
-
-
...nbsp; /*从文件读取信息建立图*/
void Print_Map(); /*显示校园景点地图*/
int Judge_Input(int num); &nbs...