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
// controller.m 调用下载接口.类方法 | |
[YJDownloadManager goTodownload]; | |
// YJDownloadManager.m | |
+ (void)goTodownload | |
{ | |
// code ..... | |
[[TCBlobDownloadManager sharedInstance] setMaxConcurrentDownloads:1]; | |
for (NSString *urlKey in urlDic.allKeys) { |
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
def bubbleSort(list): | |
issorted = False | |
for i in range(0,len(list)): | |
issorted = True | |
# 在这一趟的比较中,如果发现这一趟的数列已经成有序状态,那就不用排了,并且是整个数列也都算排完了 | |
for j in range(0, len(list) - i - 1): | |
if list[j] > list[j+1]: | |
temp = list[j] |
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
// | |
// KBCollectionExtensions.h | |
// | |
// Created by Guy English on 25/02/08. | |
// Copyright 2008 Kickingbear. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> | |
/* |