2.25 python字符串(13个) 1.以XX开头 (startswith()) v1="我爱我的祖国" result = v1.startswith("我") #判断是否以“我”开头,如果是返回"true" print(result) #true #例 v1=input("请输入户籍所在地") ...
分类:
编程语言 时间:
2021-02-27 13:13:22
阅读次数:
0
问题记录 在完成项目的过程中,遇到了这样一个问题:读取application.yml信息时,报空指针异常。 application.yml配置如下: #Cacheable 注解默认生存时间(秒)cacheable: redis: ttl: 3600 在自定义的 PropertiesUtil类中,进行 ...
分类:
移动开发 时间:
2021-02-27 12:57:22
阅读次数:
0
质数:大于1的自然数中,除了1和它本身以外不再有其他因数的自然数 因数:指整数a除以整数b(b≠0) 的商正好是整数而没有余数,我们就说b是a的因数。 num = int(input("输入一个数字: ")) if num > 1: # for i in range(2, num ): 这是我一开始 ...
分类:
编程语言 时间:
2021-02-26 13:31:27
阅读次数:
0
1.基础篇 1. React 中 keys 的作用是什么? Keys 是 React 用于追踪哪些列表中元素被修改、被添加或者被移除的辅助标识。 render () { return ( <ul> {this.state.todoItems.map(({item, key}) => { return ...
分类:
其他好文 时间:
2021-02-26 13:19:27
阅读次数:
0
ffmpeg 常用命令记录 ffmpeg官网 录屏 ffmpeg -f {device} -i {input} -r {帧率} out.yuv e.g. ffmpeg -f gdigrab -i "desktop" out.yuv ffplay -video_size 1920x1080 -pix_ ...
分类:
其他好文 时间:
2021-02-26 13:18:38
阅读次数:
0
问题: 给定二叉树,进行层序遍历,从底层向上输出。 Example 1: Input: root = [3,9,20,null,null,15,7] Output: [[15,7],[9,20],[3]] Example 2: Input: root = [1] Output: [[1]] Exam ...
分类:
其他好文 时间:
2021-02-26 12:54:45
阅读次数:
0
v-model.lazy <input type="text" v-model.lazy="myValue1"/> v-model用于和一个数据变量绑定,一般input中输入了某个字符,model中的变量也会跟着变化。用了lazy后,只有按下回车或者鼠标移开点击其他地方的时候才会触发一次更新。 v- ...
分类:
其他好文 时间:
2021-02-25 12:19:39
阅读次数:
0
datatables表格中每一行的某一列的input框添加监听事件 背景 因效果需要,所以需要对表格中的每一行的某一列中的input框添加失去焦点事件。实现效果如下: 实现代码 html代码如下: <table id="inputOrderRebackTable" class="table tabl ...
分类:
其他好文 时间:
2021-02-25 12:09:03
阅读次数:
0
var allEle = document.getElementsByTagName('*'); console.log(allEle) for(var i=0;i<allEle.length;i++){ if(allEle[i].nodeName=="INPUT"){ // $(allEle[i] ...
分类:
编程语言 时间:
2021-02-25 11:45:18
阅读次数:
0
//输入框传值 <div> <input ref={c => this.keyWordElement = c} type="text" placeholder="输入关键词点击搜索"/> <button onClick={this.search}>搜索</button> </div> / ...
分类:
其他好文 时间:
2021-02-24 13:01:28
阅读次数:
0