# 作用就是:将可迭代对象中的元素和索引同时取出 seq = ['one', 'two', 'three'] for i, element in enumerate(seq): print('index:element {}: {}'.format(i, element)) print('\n') ...
分类:
编程语言 时间:
2020-11-08 16:38:34
阅读次数:
16
1、将时间先调整为20年后(比如为2030年10月1号),然后在设置里设置 暂停更新,发现此时的 暂停更新时间 被设定了在2030年,此时将系统时间改回正常时间,再次进入设置里的 暂停更新,发现时间还定位在2030年,perfect,成功欺骗了win10系统。 2、将windows update 服 ...
for (var m = 0; m < oneList.length; m++) { $('#grid tr').find('td:eq('+oneList[m]+')').hide(); } 其中oneList里面存储的是指定列的列数,也就是列坐标 ...
分类:
Web程序 时间:
2020-11-07 16:39:59
阅读次数:
24
use think\Config; $config = Config::get('database2'); //读取第二个数据库配置 $connect = Db::connect($config); //连接数据库 $data = $connect->name('admin')->find(); / ...
分类:
数据库 时间:
2020-11-07 16:21:15
阅读次数:
22
初始写法,导致弹框出现多次this.$message.error('无权限访问,请联系管理员') 解决办法: 官网文档有提到closeAll(),手动关闭所有实例 官网地址:https://element.eleme.cn/#/zh-CN/component/message //引入 import ...
分类:
其他好文 时间:
2020-11-07 16:02:27
阅读次数:
32
1.需要先导入一个设置表结构 xxqcfg_mstr(用Data Administraton工具选择数据库导入) ADD TABLE "xxqcfg_mstr" AREA "CONTROL" DESCRIPTION "Config for xxqad program " DUMP-NAME "xxq ...
分类:
其他好文 时间:
2020-11-07 15:59:54
阅读次数:
19
Leetcode easy ListNode Leetcode 简单链表题目 21 合并两个有序链表 题目:将两个升序链表合并为一个新的 升序 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 /** * Definition for singly-linked list. * publ ...
分类:
其他好文 时间:
2020-11-06 02:28:36
阅读次数:
19
Leetcode(easy Double pointer) Leetcode 双指针简单题目 26 删除排序数组中的重复项 class Solution{ public int removeDuplicates(int[] nums){ // step代表慢指针 int step = 0; // 这 ...
分类:
其他好文 时间:
2020-11-06 02:28:21
阅读次数:
24
题目: 字符串中有括号”()[]{}”,设计算法,判断该字符串是否有效括号必须以正确的顺序配对,如:“()”、“()[]”是有效的,但“([)]”无效 解法一: # coding=utf-8 from pythonds.basic.stack import Stack # 栈可以不用此包,入栈app ...
分类:
其他好文 时间:
2020-11-06 02:07:04
阅读次数:
20
1) <script src="../build/react.development.js"></script> <script src="../build/react-dom.development.js"></script> <script src="../build/babel.min.js" ...
分类:
其他好文 时间:
2020-11-06 01:14:38
阅读次数:
19