#字典取值score = (90,89,78)d = {"name":"张三","sex":'男','score':score}#取字典的keyfor k in d.keys(): print(k)#取字典的valuefor v in d.values(): print(v)#同时取字典的key v ...
分类:
其他好文 时间:
2020-07-01 22:14:00
阅读次数:
67
获取全部索引数据 /// <summary>/// 获取所有索引值/// </summary>public static List<dynamic> GetSearchIndexAll(){ var reader = DirectoryReader.Open(FSDirectory.Open(new ...
分类:
Web程序 时间:
2020-07-01 12:37:52
阅读次数:
70
写一个过滤器 getTime(item) { const date = new Date( //这一步是根据我后端返回的时间格式处理的,可选用 item.replace(/\-/g, "/").substring(0, item.indexOf(".")) ); const Y = date.get ...
分类:
Web程序 时间:
2020-07-01 12:19:18
阅读次数:
76
1,position定位(推荐) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box01{ height: 300px; /* 这里可以改变 */ widt ...
分类:
Web程序 时间:
2020-07-01 09:39:51
阅读次数:
67
想要实现侧边栏,需要配合使用DrawerLayout。因为会用到嵌套布局,所以根布局不能是 ConstraintLayout,DrawerLayout 布局下再嵌套两个布局,一个放置内容如 LinearLayout,一个放置侧划菜单,这里使用 NavigationView 为了出现侧边栏点击图标和菜... ...
分类:
移动开发 时间:
2020-07-01 09:23:41
阅读次数:
78
栈-先进后出 class Stack(): def __init__(self): self.items = [] def push(self,item): self.items.append(item) def pop(self): return self.items.pop() def peek ...
分类:
编程语言 时间:
2020-07-01 00:22:01
阅读次数:
98
给定一个 m x n 的矩阵,如果一个元素为 0,则将其所在行和列的所有元素都设为 0。请使用原地算法。 function setZeroes(matrix) { let x = [],y = [] for(let i = 0;i < matrix.length;i++){ let item = m ...
分类:
其他好文 时间:
2020-06-30 22:41:28
阅读次数:
46
本文将详细介绍在Ubuntu16.04上对OpenJDK8进行编译。 ...
分类:
系统相关 时间:
2020-06-30 20:48:39
阅读次数:
72
set 集合 set 集合: 作用:集合之间的交差并补; 特点:无序,自动去重; 对于set 的值是 可哈希的数值,例如:int float bool complex str tuple 定义集合 setvar = set() #空集合setvar = {'北京','武汉','内蒙古'}print( ...
分类:
其他好文 时间:
2020-06-30 20:29:51
阅读次数:
46
import shelve a = shelve.open('1') b = [1,2,3] a['b'] = b a.close()a['b'] Traceback (most recent call last):File "C:\Users\Administrator\AppData\Local ...
分类:
其他好文 时间:
2020-06-30 17:22:01
阅读次数:
66