- 4GB+ USB Stick
- Windows 7 ISO from Microsoft downloaded to your OSX-Machine
- Open Disk utility
- Find the drive, format it with the following options:
- Choose Master Boot Record (MBR)
#时间转为时间戳 | |
def time_handle(time_in): #time_in is str type | |
d = datetime.datetime.strptime(time_in, "%m/%d/%Y %H:%M:%S") | |
x1 = time.mktime(d.timetuple()) #get the timestamp | |
return x1 |
# 读取 csv 文件,添加标题行 | |
mobi = r"/Users/pmz/Project/MOBIKE_CUP_2017/225W.csv" | |
df = pd.read_csv(mobi,header=0,names=['time','number']) | |
print(df.head()) |
// 在 for 的高级用法中不能动态的删除集合元素。 | |
public class Test { | |
public static void main(String[] args) { | |
ArrayList<String> str = new ArrayList<>(); | |
str.add("h"); | |
str.add("e"); | |
str.add("ll"); | |
str.add("o"); | |
for(String i:str) { | |
if(i.equals("e")) { |
[innotec@innotec ~]$ ps aux | grep 'manage.py' | awk '{print $2}' | xargs kill -9 | |
# add alias in .bashrc | |
# kill python processes | |
alias ppsk="pkill -f manage.py" | |
# or | |
[innotec@innotec ~]$ killall python | |
# or | |
alias pk="ps aux | grep 'manage.py' | awk '{print $2}' | xargs kill -9" |