首页 > 编程语言
vue 在使用数组的时候,数组内部数据发生变化,视图却没有改变
data(){ return{ todos: [ {name: 'aa', age: 22}, {name: 'bb', age: 23} ] } } methods:{ changeTodos(){ this.todos[0]={name: 'zz', age: 12} } } 上面我们在改变to ...
分类:编程语言   时间:2020-09-07 18:57:41    收藏:0  评论:0  赞:0  阅读:77
Java执行Shell和传输文件
特性: 多线程批量执行 多密码尝试 引入依赖: <dependency> <groupId>ch.ethz.ganymed</groupId> <artifactId>ganymed-ssh2</artifactId> <version>262</version> </dependency> 示例代 ...
分类:编程语言   时间:2020-09-07 18:57:28    收藏:0  评论:0  赞:0  阅读:58
java基础之ArrayList和HashMap对比
Map接口中的常用方法 public V put(K key, V value) : 把指定的键与指定的值添加到Map集合中。 public V remove(Object key) : 把指定的键 所对应的键值对元素 在Map集合中删除,返回被删除元素的 值。 public V get(Objec ...
分类:编程语言   时间:2020-09-07 18:57:03    收藏:0  评论:0  赞:0  阅读:58
springboot整合redis之工具类的封装(三)
1构造 2User类: package springboot_redis.bean; import java.util.Date; public class User { /** * 用户年龄 */ private int age; /** * 用户密码 */ private String pwd; ...
分类:编程语言   时间:2020-09-07 18:27:25    收藏:0  评论:0  赞:0  阅读:388
python基础(六)
#函数input(),程序暂停运行,等待用户输入一些文本,获取输入后,将其存储在一个变量中 message = input("tell me") print(message) tell mehi hi name = input("Please enter your name:") print("He ...
分类:编程语言   时间:2020-09-07 17:57:25    收藏:0  评论:0  赞:0  阅读:70
python字典键值对新增与修改的几种方法及差异总结
字典键值对新增与修改有如下几种方法: 示例:my_info = {"name", "Rachel", "age": 18, "city": "深圳"} 方法一: my_info["height"] = "165cm" -- 该语句可实现新增/修改单个键值对的操作 新增:当height键不存在my_i ...
分类:编程语言   时间:2020-09-07 17:56:09    收藏:0  评论:0  赞:0  阅读:132
python编程-------基本数据类型
什么是数据类型? 我们人类可以很容易的分清数字与字符的区别,但是计算机并不能呀,计算机虽然很强大,但从某种角度上看又很傻,除非你明确的告诉它,1是数字,“汉”是文字,否则它是分不清1和‘汉’的区别的,因此,在每个编程语言里都会有一个叫数据类型的东东,其实就是对常用的各种数据类型进行了明确的划分,你想 ...
分类:编程语言   时间:2020-09-07 17:30:10    收藏:0  评论:0  赞:0  阅读:63
区间翻转 归并排序 + 逆序对
区间翻转 这个题目如果不知道怎么用归并排序求逆序对还是很难想的,但是知道用归并排序求逆序对也不是一个很好写的题目。 注意题目是每一个数只出现一次!!! 思路: 整体求考虑每一次操作的影响。 因为每次操作都是2的幂次,那么我们先求出划分成$2x$ 块的每一个块内的逆序对之和,这个可以用归并排序做,所以 ...
分类:编程语言   时间:2020-09-07 17:28:33    收藏:0  评论:0  赞:0  阅读:108
Hive支持的文件格式与压缩算法
概述 只要是配置了正确的文件类型和压缩类型(比如Textfile+Gzip、SequenceFile+Snappy等),Hive都可以预期读取并解析数据,提供SQL功能。SequenceFile本身的结构已经设计了内容进行压缩。所以对于SequenceFile文件的压缩,并不是先生成Sequence ...
分类:编程语言   时间:2020-09-07 17:26:59    收藏:0  评论:0  赞:0  阅读:50
C# 一维数组的定义与Format语句的使用
1 static void Main(string[] args) 2 { 3 //一维数组的两种初始化 4 //动态初始化 5 int a = 5; 6 int[] aa = new int[10]; 7 int[] bb = new int[a]; 8 //利用new给int数组在堆中开空间初始 ...
分类:编程语言   时间:2020-09-07 16:58:11    收藏:0  评论:0  赞:0  阅读:86
线程池
'''concurrent.futures 模块提供了高度封装的异步调用接口ThreadPoolExecutor :线程池,提供异步调用ProcessPoolExecutor:进程池,提供异步调用。基本方法:submit(fn,*args,**kargs) 异步提交任务map(func,*itera ...
分类:编程语言   时间:2020-09-07 16:57:02    收藏:0  评论:0  赞:0  阅读:74
Python json和pickle模块
json和pickle模块 用于序列化的两个模块 序列化模块:json 和 pickle json,用于字符串 和 python数据类型间进行转换 pickle,用于python特有的类型 和 python的数据类型间进行转换 Json模块提供了四个功能:dumps、dump、loads、load ...
分类:编程语言   时间:2020-09-07 16:56:49    收藏:0  评论:0  赞:0  阅读:66
LeetCode 105. 从前序与中序遍历序列构造二叉树(C++)
如果不确定范围可以自己画图解释 class Solution { public: TreeNode* buildTree(vector<int>& preorder, vector<int>& inorder) { TreeNode* root = build(preorder,inorder,0, ...
分类:编程语言   时间:2020-09-07 15:52:43    收藏:0  评论:0  赞:0  阅读:77
spring boot读取resource下的文件
//Spring Resource API //m1 //Resource resource = new ClassPathResource("classpath:xx.properties"); //m2 //@Autowired //ResourceLoader resourceLoader; ...
分类:编程语言   时间:2020-09-07 15:52:07    收藏:0  评论:0  赞:0  阅读:186
Java 8日期时间类的使用
文档:Java 8日期时间类的使用.note链接:http://note.youdao.com/noteshare?id=d9a34268ff24557e30504b9ae5acdeac&sub=108FC0043AEE4FE59C2A35D9BE603474 从Java 8开始,Java.time ...
分类:编程语言   时间:2020-09-07 15:51:26    收藏:0  评论:0  赞:0  阅读:81
springMVC拦截器使用
新建一个类,实现 HandlerInterceptor 接口 import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import ...
分类:编程语言   时间:2020-09-07 15:49:59    收藏:0  评论:0  赞:0  阅读:52
IDL 数组中随机选取元素
IDL> array = [1.0,2.9,3.8,4.7,5.6,6.5,7.4,8.3,9.2,10.1] ; 10个数的数组 IDL> selectCount = round( n_elements(array) * 0.8) ; 选择数组个数的80%的数量 IDL> print, selec ...
分类:编程语言   时间:2020-09-07 15:49:41    收藏:0  评论:0  赞:0  阅读:105
python logging
import logging logging.basicConfig(format="%(asctime)s:%(name)s:%(levelname)s:%(message)s",filename='web_server.log',level=logging.DEBUG) #logging.bas ...
分类:编程语言   时间:2020-09-07 15:48:04    收藏:0  评论:0  赞:0  阅读:46
IDL 双重排序函数
;+ ; :Description: ; Double Sort ; :Input: ; input array dimensions: 2*N ; idx: 0 - Sort by the first column firstly (Default) ; 1 - Sort by the secon ...
分类:编程语言   时间:2020-09-07 15:47:14    收藏:0  评论:0  赞:0  阅读:70
[Unity3D] 使用Microsoft Edge浏览器的朗读模式录制游戏配音
一:准备工具 ① Microsoft Edge最新版浏览器 ② Adobe Audition(任意版本) ③ Unity3D(任意版本) ④ 要阅读的内容文字(Txt文档) 二:录制内容 ①将电脑立体声混音启动并设为默认 ②打开Adobe Audition 编辑→音频硬件设置→将三大项声音输入选择为 ...
分类:编程语言   时间:2020-09-07 15:47:00    收藏:0  评论:0  赞:0  阅读:143
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!