一、你为何要来上课并且认真参与(来源 >http://www.scalerstalk.com/816-attention) 作为一个学生,当前最重要的任务就是学习知识,而上课对于学生来说,就是最简单粗暴并且有效的方式。上课通过老师授课的方法,将知识传递,能更方便快捷的将知识点细化,让学生能更好的吸收 ...
分类:
其他好文 时间:
2018-09-09 00:42:28
阅读次数:
173
原题目这样的:编写一个函数来查找字符串数组中的最长公共前缀。如果不存在公共前缀,返回空字符串 "" 示例 1: 输入: ["flower","flow","flight"] 输出: "fl" 示例 2: 输入: ["dog","racecar","car"] 输出: "" 解释: 输入不存在公共前缀 ...
分类:
编程语言 时间:
2018-09-08 14:04:18
阅读次数:
179
django提供了一系列api用来处理ImageField对象和FileField对象 from django.db import models class Car(models.Model): name = models.CharField(max_length=255) price = mode ...
分类:
其他好文 时间:
2018-09-08 14:02:40
阅读次数:
156
import time import random from multiprocessing import Process,Event def cars(e,i): if not e.is_set(): print('car%d在等待'%i) e.wait() print('\033[33mcar%... ...
分类:
其他好文 时间:
2018-09-07 21:11:14
阅读次数:
166
python名片管理是我根据视频自己敲敲的代码,后续学习会持续更新 代码 card_main.py card_tools.py ...
分类:
编程语言 时间:
2018-09-07 11:14:25
阅读次数:
203
map()函数 对可迭代函数’iterable’中的每一个元素应用‘function’方法,将结果作为list返回。 来个例子: >>> def abc(a, b, c): ... return a*10000 + b*100 + c ... >>> list1 = [11,22,33] >>> l ...
分类:
编程语言 时间:
2018-09-06 16:21:00
阅读次数:
202
原生应用就是特别为某种操作系统所开发的,在各自设备上运行的应用,原生应用拥有访问手机全部功能的所有权限;速度,性能都比混合应用要更快更高,用户体验更好,可以线下使用,支持大量图形和动画。但是原生应用的开发成本很高,并且是在某个平台的专属设备上使用,支持设备有限,更新需要重新下载 web应用本质上是为 ...
分类:
移动开发 时间:
2018-09-05 23:51:48
阅读次数:
189
A 留坑 B 每个2操作等价于把第一个球放到末尾(P-1)然后其他所有球的位置前移一位,用set维护即可 C 留坑 D 1. 把回头边去掉 2. 在八边形上走大于5步的取反向路径 如果成环,不断做上面两个操作一定能消没 E 留坑 F 留坑 G 留坑 H 考虑bins[x]代表二进制被x包含的几个物品 ...
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas s ...
分类:
其他好文 时间:
2018-09-05 21:58:11
阅读次数:
249
The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of e ...
分类:
其他好文 时间:
2018-09-05 08:59:28
阅读次数:
160