1、泛型、泛型约束与扩展; 2、函数式编程; 3、值类型、引用类型; 4、枚举、关联值、元组等其他 上述为swift最大的特点 Another safety feature is that by default Swift objects can never be nil, and trying t ...
分类:
编程语言 时间:
2018-12-12 23:49:27
阅读次数:
288
柠檬学院Java 基础常见英语词汇(共 70 个)OO: object-oriented ,面向对象 OOP: object-oriented programming,面向对象编程JDK:Java development kit, java 开发工具包 JVM:java virtual machin ...
分类:
编程语言 时间:
2018-12-12 21:29:27
阅读次数:
192
def func(a, b): return a + b ret = func(1, 3) print(ret) # # 匿名函数统一的名字是: fn = lambda a, b : a + b # 定义一个很简单的函数. 复杂的函数不要用lambda ret = fn(3, 5) print(re... ...
分类:
编程语言 时间:
2018-12-12 19:02:06
阅读次数:
144
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y ...
分类:
编程语言 时间:
2018-12-12 18:54:40
阅读次数:
204
int temp = 0; int b = 0; int[] arr = { 23, 44, 66, 76, 98, 11, 3, 99, 7 };# region该段与排序无关Console.WriteLine("排序前的数组:");foreach (int item in arr){ Conso ...
分类:
编程语言 时间:
2018-12-09 18:52:20
阅读次数:
210
import asyncio from threading import Thread import time print('main start:',time.time()) async def start(i): print(i, time.time()) await asyncio.sleep... ...
分类:
其他好文 时间:
2018-12-09 14:15:31
阅读次数:
199
problem 190. Reverse Bits 1. Leetcode_Reverse Bits; ...
分类:
其他好文 时间:
2018-12-08 21:15:46
阅读次数:
147
路由控制配置 简单的路由配置 Django即支持1.x版本的路由配置也支持2.x的路由配置 1.x版本的路由配置是使用re进行路由配置(re_path) 2.x版本的路由配置使用(path)进行路由配置 注意: 若要从URL 中捕获一个值,只需要在它两头放置一对圆括号(捕获的值传递到视图函数中,在定 ...
分类:
其他好文 时间:
2018-12-08 17:08:36
阅读次数:
142
public bool IsPalindrome(int x) { // Special cases: // As discussed above, when x revertedNumber) { revertedNumber = revertedNumber * 10 + x % 10; x /... ...
分类:
其他好文 时间:
2018-12-08 11:09:16
阅读次数:
118