public class ThreadDemo { //1.定义一个静态变量,因为静态变量是线程共享的 public static int count = 0; //2.定义一个自增的方法 public static void add() { try { Thread.sleep(1);//让程序睡 ...
分类:
编程语言 时间:
2021-05-24 02:11:00
阅读次数:
0
delete from 表名 a where 列名 in ( select t.列名 from (select 列名 ,count(*) from 表名 where 列名 is not null group by 列名 having count(*) > 1) t ) ...
分类:
其他好文 时间:
2021-05-24 02:01:44
阅读次数:
0
POJ 1005 - I Think I Need a Houseboat Description Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process o ...
分类:
其他好文 时间:
2021-05-24 00:42:36
阅读次数:
0
使用云服务器git clone某个项目时,遇到如下问题: fatal: Out of memory, malloc failed (tried to allocate 2000000000 bytes) 百度后找到如下解决方法: sudo mkdir -p /opt/temp sudo dd if= ...
分类:
其他好文 时间:
2021-05-24 00:26:08
阅读次数:
0
解决RuntimeError: you must first build vocabulary before training the model错误 查找解决方案,意思就是说你的数据集中的数量过少,解决方案有两种,扩大数据集的数量、另一个就是更改min_count的值例如:如果太少的话可以更改为 ...
分类:
其他好文 时间:
2021-05-23 23:49:16
阅读次数:
0
from openpyxl import load_workbook import smtplib from email.mime.text import MIMEText # 邮件正文 from email.header import Header # 邮件头 # 加载excel 文件 wb = ...
分类:
其他好文 时间:
2021-05-04 16:06:39
阅读次数:
0
pi表示在信息熵部分中有介绍,如下图中介绍 选择最小的那个0.3 #整个c4.5决策树的所有算法: import numpy as np import operator def creatDataSet(): """ outlook-> 0:sunny | 1:overcast | 2:rain t ...
分类:
其他好文 时间:
2021-05-03 12:13:28
阅读次数:
0
前言 有时候调用API时,会出现嵌套json(Json数组)的情况,这时如果使用fastjson就可以很快的进行解析。 例子 { "status": "1", "info": "OK", "infocode": "10000", "count": "1", "geocodes": [ { "form ...
分类:
编程语言 时间:
2021-05-03 11:41:00
阅读次数:
0
一、循环嵌套 1. 下列代码的运行结果是( ) public static void main(String[] args){ int count = 0; for(int j = 0;j<3;j++) { for(int i = 0;i<6;i++) { count++; } } System.o ...
分类:
编程语言 时间:
2021-04-30 12:15:08
阅读次数:
0
reduceByKey、groupByKey rdd=sc. parallelize([("one",1),("two",1),("one",1),("one1",1)]) rdd. reduceByKey(lambda x,y:x). count() rdd1=sc. parallelize([( ...
分类:
其他好文 时间:
2021-04-29 12:20:10
阅读次数:
0