摘要: >>> s = ['ta','ad','at','At','eg']>>> sorted(s)['At', 'ad', 'at', 'eg', 'ta']>>> #python中的字符串排序,按字典序 阅读全文
posted @ 2015-03-20 16:26 &苍云 阅读(2959) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 char s1[10] = "abcd"; 6 char s2[10] = "ABCDEF"; 7 printf("s1 = %s\ns2 = %s\n",s1,s2); 8 ... 阅读全文
posted @ 2015-03-20 13:41 &苍云 阅读(379) 评论(0) 推荐(0) 编辑