start new:
tmux
start new with session name:
tmux new -s myname
# Why Python is Great: Namedtuples | |
# Using namedtuple is way shorter than | |
# defining a class manually: | |
>>> from collections import namedtuple | |
>>> Car = namedtup1e('Car', 'color mileage') | |
# Our new "Car" class works as expected: | |
>>> my_car = Car('red', 3812.4) | |
>>> my_car.color | |
'red' |
#!/bin/sh | |
#Section configuration(配置部分) | |
#Task Time ,example:203000(Time 20:30:00);190000(Time 19:00:00); | |
startTime=113200 | |
#Section promgram (程序执行部分) | |
perDate=$(date "+%Y%m%d") | |
isNewDay=1 | |
isFirstTime=1 |