This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
set timeout 30 | |
set host "127.0.0.1" | |
set username "air" | |
set password "password" | |
trap { | |
set rows [stty rows] | |
set cols [stty columns] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (( i = 0; i < 600; i++ ));do | |
thistime=$(date "+%H:%M:%S" -d "00:00:00 $i second") | |
echo $thistime >> log | |
done | |
for (( i = 0; i < 600; i++ ));do | |
thistime=$(date "+%H:%M:%S" -d "00:00:00 $i second") | |
echo $thistime | |
echo $thistime >> result.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0.导出环境 | |
#使用pip导出当前环境所有依赖包信息文件 | |
pip3 freeze > req.txt | |
导出 安装包 | |
# 下载所有依赖包到本地 | |
pip3 download -r req.txt -d packages | |
(可选 -i https://pypi.douban.com/simple) | |
1.安装python3.7 | |
2.安装pycharm | |
3.搭建环境: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i=0 | |
F=new | |
while [ $i -le 30 ] | |
do | |
cp -vf old.csv $F$i.csv | |
let i+=1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CC=gcc | |
GPP=g++ | |
PRONAME=$0 | |
if [ -z $1 ];then | |
echo -e "\033[0;31mUsage : $PRONAME < C-Programs File's name >\033[0m" | |
exit 1 | |
fi |