码迷,mamicode.com
首页 >  
搜索关键字:read    ( 19693个结果
java 多线程
package com.jack.test2; public class MyRunnable implements Runnable { int tikets = 20; @Override public void run() { while (true) { if (tikets > 0) { ...
分类:编程语言   时间:2020-04-04 09:39:20    阅读次数:66
办公自动化17-将一个excel里的多个sheet合并为1个sheet
合并前数据情况: 当然也可以多于两个sheet,sheet的名字也可以是自定义的。 合并后的效果: 附上代码如下: import pandas as pd #第一步:数据读取 df = pd.read_excel(r'C:\Users\17360\Desktop\test\指标.xlsx',shee ...
分类:其他好文   时间:2020-04-03 22:16:19    阅读次数:77
mr调优
一、调优的目的充分的利用机器的性能,更快的完成mr程序的计算任务。甚至是在有限的机器条件下,能够支持运行足够多的mr程序。二、调优的总体概述从mr程序的内部运行机制,我们可以了解到一个mr程序由mapper和reducer两个阶段组成,其中mapper阶段包括数据的读取、map处理以及写出操作(排序 ...
分类:其他好文   时间:2020-04-03 18:37:21    阅读次数:87
vue中使用echarts遇到的Error in v-on handler: "TypeError: Cannot read property 'getAttribute' of null"
今天在项目中使用echarts ,项目中,需要点击对应的图片,来对折线图和柱状图的切换 首先,HTML代码是这样子的: <div v-if="showType==1" id="lineChart" style="width: 100%;height:100%;"></div> <div v-if=" ...
分类:其他好文   时间:2020-04-03 13:53:17    阅读次数:1757
XML解析
<!-- https://mvnrepository.com/artifact/dom4j/dom4j --> <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> <version>1.6.1</version> ...
分类:其他好文   时间:2020-04-03 12:27:23    阅读次数:94
PyTorch的一些类及函数
"原博客" 以下是一些我在使用PyTorch中遇到的一些类及函数,为了便于理解和使用,将官网中的说明摘录一些下来。 torch.nn.modules.conv1d 来源 https://pytorch.org/docs/stable/_modules/torch/nn/modules/conv.ht ...
分类:其他好文   时间:2020-04-03 12:26:57    阅读次数:168
Linux线程调度
代码如下: 1 #include <stdio.h> 2 #include <pthread.h> 3 #include <sched.h> 4 #include <assert.h> 5 6 static int api_get_thread_policy(pthread_attr_t *attr ...
分类:编程语言   时间:2020-04-03 12:03:58    阅读次数:69
POJ3349 Snowflake Snow Snowflakes(Hash)
You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read ...
分类:其他好文   时间:2020-04-03 00:53:51    阅读次数:78
多线程-2(线程同步)
带着问题去思考!大家好。今天我们来了解下什么是线程同步? 首先我们先知道这些概念和一些类; 执行基本的原子性 Mutex类 SemaphoreSlim类 AutoResetEvent类 ManualRestEventSlim类 CountDownEvent类 Barrier类 ReaderWrite ...
分类:编程语言   时间:2020-04-03 00:39:58    阅读次数:80
多线程设计模式——Read-Write Lock模式和Future模式分析
[TOC] 本文内所有实现的代码均附在文末,有需要可以参考。~~(好奇宝宝们可以粘贴下来跑一下~~ 多线程程序评价标准 安全性: ? 安全性就是不损坏对象。也就是保证对象内部的字段的值与预期相同。 生存性: ? 生存性是指无论什么时候,必要的处理都一定能够执行。失去生存性最典型的例子就是“死锁”。 ...
分类:编程语言   时间:2020-04-02 23:02:50    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!