Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:
其他好文 时间:
2019-06-04 22:07:27
阅读次数:
101
1、安装gevent-websocket 2、chat.py文件内容如下: 3、web_chat.html文件部分内容如下: 4、js代码如下: 最终的效果图如下: ...
分类:
Web程序 时间:
2019-06-04 19:46:05
阅读次数:
502
jQuery EasyUI/TopJUI创建树形表格下拉框 第一种方法(纯HTML创建) 第二种方法(js) html js 效果展示 html js EasyUI中文网:http://www.jeasyui.cn TopJUI前端框架:http://www.topjui.com TopJUI交流社 ...
分类:
Web程序 时间:
2019-06-04 19:45:52
阅读次数:
488
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner input = new Scanner(System.in); while(input.hasNext()){ ... ...
分类:
编程语言 时间:
2019-06-04 17:57:36
阅读次数:
145
1.示例 2.在这个基础上,我们写一个函数 3.分开 4.修饰 5.语法糖 @装饰器名 6.如果被修饰的函数有返回值 7.被装饰的函数带参数 8.多个参数都被装饰,且传入的参数个数不一致 9.总结 10.开放封闭原则 ...
分类:
其他好文 时间:
2019-06-04 17:36:51
阅读次数:
79
一个问题引发的血案: 用python向redis写入数据报错: redis.exceptions.DataError: Invalid input of type: 'dict'. Convert to a byte, string or number first. 查看redis的版本: pip3 ...
分类:
其他好文 时间:
2019-06-04 14:53:34
阅读次数:
642
<template> <card> <el-popover placement="right" width="400" trigger="click" > <el-table ref="singleTable" :data="pinyinOptions" highlight-current-row ...
分类:
其他好文 时间:
2019-06-04 12:47:24
阅读次数:
555
# print("alex今年58岁,是一个老头, 爱好是女, 性别:男")# print("wusir今年48岁,是一个老头, 爱好是男, 性别:男")# print("太白今年68岁,是一个老头, 爱好是不详, 性别:诡异")# name = input("请输入名字:")# age = inp ...
分类:
其他好文 时间:
2019-06-03 23:32:06
阅读次数:
114
1、装饰器介绍与简单实现 1.1、什么是装饰器 ? 器:指的是具备某一个功能的工具 ? 装饰:指的是为被装饰对象添加新功能 ? 装饰器就是用来为被装饰对象添加新功能的工具。 ? 注意:装饰器本身可以是任意可调用对象,被装饰的对象也可以是任意可调用对象。 1.2、为何要用装饰器 ? 开放封闭原则: 封 ...
分类:
其他好文 时间:
2019-06-03 17:10:54
阅读次数:
83
Given a binary tree, return the preorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iterativel ...
分类:
其他好文 时间:
2019-06-02 18:07:04
阅读次数:
148