摘要: 1 void MergeSortCore(int *a,int low,int mid,int high) 2 { 3 int *b = new int; 4 int i,j,k; 5 for(i=low,j=mid+1,k=low;i<=mid && j<=high;k++) 6 { 7 if(a[i]<a[j]) 8 b[k] = a[i++]; 9 else 10 b[k... 阅读全文
posted @ 2018-11-24 19:28 执著的追求 阅读(300) 评论(0) 推荐(0) 编辑
摘要: void AllSortCore(char *str,int begin,int end); void AllSort(char *str) { if(str == NULL) return ; int n = strlen(str); AllSortCore(str,0,n-1); } void AllSortCore(char *str,int be... 阅读全文
posted @ 2018-11-24 19:27 执著的追求 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 import sys 2 import MySQLdb 3 import json 4 import time 5 import string 6 7 cur_time="\""+time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))+"\"" 8 9 with open('../../conf/... 阅读全文
posted @ 2018-11-24 16:17 执著的追求 阅读(241) 评论(0) 推荐(0) 编辑