为您找到约 47 条结果,搜索耗时:0.0051秒

awk sed 大全

...每一行后面增加一空行   #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 ...

python电路仿真

...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 ...

python实现骰子

... 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_...

《Python深度学习》书籍代码

...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)     ...

shell笔记

#!/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 }'

DS1302时钟+1602液晶

...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...

微信捐赠

微信扫一扫体验

立即
上传
返回
顶部