1、迭代器: 可迭代对象 # 如何判断一个对象是不是可迭代对象# 方法一:isinstance(obj,Iterable)# 方法二:看有没有__iter__方法 迭代器协议: #1、迭代器类型必须包含 __iter__和__next__#2、__iter__方法必须返回 self#3、__next ...
分类:
其他好文 时间:
2021-03-03 12:20:19
阅读次数:
0
线程通信 等待: public final void wait(); public final void wait(long timeout); //必须在对obj加锁的同步代码块中,在一个线程中,调用obj.wait()时,此线程会释放其拥有的所有锁标记,同时此线程在无限期等待的状态中,释放锁,进 ...
分类:
编程语言 时间:
2021-03-03 12:10:36
阅读次数:
0
router.beforeEach((to, from, next) => {/* 路由发生变化修改页面title */if (to.meta.title) {document.title = to.meta.title}if(to.meta.content){let head = document ...
分类:
其他好文 时间:
2021-03-03 12:05:46
阅读次数:
0
一. 概念 1.1 REST API概念 Representational State Transfer 的简称 rest api 是前后端分离最佳实践,是开发的一套标准或者说是一套规范,不是框架 用于Http服务器和客户端的数据交换,好处: 1、轻量,直接通过http,不需要额外的协议。2、面向资 ...
<style> div{ width: 200px; height: 20px; background-color: red; } ul{ display: none; margin: 0; padding: 0; width: 200px; background-color: #ccc; } </ ...
分类:
Web程序 时间:
2021-03-01 14:07:32
阅读次数:
0
问题 请实现 copyRandomList 函数,复制一个复杂链表。在复杂链表中,每个节点除了有一个 next 指针指向下一个节点,还有一个 random 指针指向链表中的任意节点或者 null。 // Definition for a Node. class Node { public: int ...
分类:
其他好文 时间:
2021-03-01 13:48:04
阅读次数:
0
Scanner Java.util.Scanner是Java5的新特征,我们可以通过Scanner类来获取用户的输入。 基本语法: Scanner s = new Scanner(System.in); 通过Scanner类的next()和nextLine()方法获取输入的字符串,在读取前我们一般需 ...
分类:
编程语言 时间:
2021-03-01 13:42:30
阅读次数:
0
"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can ...
分类:
其他好文 时间:
2021-03-01 13:14:50
阅读次数:
0
引入 求两个多项式的卷积 Description 给定两个多项式 \(F\left(x\right), G\left(x\right)\) 的系数表示法,求两个多项式的卷积。 如: \(F\left(x\right) = 2x + 1\) \(G\left(x\right) = x^2 + 2x + ...
分类:
其他好文 时间:
2021-03-01 13:07:46
阅读次数:
0
onClickRow: function (index) { var editor = feeTable.datagrid('getEditors', index); editor[0].target.next('span').find('input').blur(function () { fee ...
分类:
其他好文 时间:
2021-02-27 13:33:15
阅读次数:
0