浅拷贝:只拷贝一层深拷贝:克隆一份a = [[1,2],3,4]b = a.copy() #b = a[:] 完成一次浅拷贝# copy(self, *args, **kwargs): # real signature unknown# """ Return a shallow copy of th... ...
分类:
其他好文 时间:
2019-03-02 19:58:28
阅读次数:
200
主要内容 1. Flask 请求上下文管理 2. Flask 应用上下文管理 1. Flask请求上下文管理 1.1 Flask请求上文 当请求进来时,Flask实例化对象app执行__call__ def __call__(self, environ, start_response): """Th ...
分类:
其他好文 时间:
2019-02-28 18:29:41
阅读次数:
168
今天尝试安装shell下的有道翻译,提示需要安装pip. 然而系统提示pip版本过期. root@mestery ~]# sudo pip install youdao pip is configured with locations that require TLS/SSL, however th ...
分类:
系统相关 时间:
2019-02-28 14:51:51
阅读次数:
184
Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off th ...
分类:
其他好文 时间:
2019-02-26 17:14:23
阅读次数:
132
先准备一个耗时方法 /// <summary>/// 耗时方法/// </summary>/// <param name="name"></param>private void DoSomeThing(string name){ Console.WriteLine($"开始执行{name}, {Th ...
分类:
编程语言 时间:
2019-02-25 00:40:21
阅读次数:
237
1 #include 2 #include 3 #include 4 #include 5 6 int num=0; 7 pthread_mutex_t lock; 8 pthread_t th; 9 10 11 void* th_handler(void* p){ 12 int i=0; 13 f... ...
分类:
系统相关 时间:
2019-02-24 15:01:22
阅读次数:
214
Driver.Quit()与Driver.Close()的不同:Driver.Quit(): Quit this dirver, closing every associated windows;Driver.Close(): Close the current window, quiting th ...
分类:
其他好文 时间:
2019-02-24 13:50:20
阅读次数:
239
```C++ include include include // STL using namespace std; //使用sort()函数必须加上 const int MAXN = 100010; struct TH{ char name[15]; int age; int money; }th ...
分类:
其他好文 时间:
2019-02-24 11:05:21
阅读次数:
160
```C++ include include using namespace std; const int INF = 1000000000; //初始化最低油价 struct station{ double oil_price; //加油站油价 int distance; //加油站离出发点的距离 ...
分类:
其他好文 时间:
2019-02-24 10:36:44
阅读次数:
182