SimpleDateFormat多线程问题
SimpleDateFormat多线程问题
四月份在优化一个功能时候,尝试把Date和SimpleDateFormat封装在class中,然后统一format和parse解析,以此避免重复new对象节省重复申请内存。于是就遇到了一个坑——经常出现莫名其妙的日期,打印出来时候甚至有0650年的日期,唐朝啊,难道计算机给我玩穿越?!,大家都知道一般日期是1970-01-01开始的,要么再早一些事1900-01-01开始的,不会再早了。
一开始怀疑事输入问题造成的,但是经过一番调试发现传入数据没错,传入数据在经过统一对象Format和parse后就出现日期不对,怀疑是SimpleDateFormat的问题。于是查阅官方文档
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
文档最后特定对多线程做如下描述
Synchronization
Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.
官方文档说的明明白白,SimpleDateFormat不是线程安全的,如果需要多线程使用,那么需要显示synchronized同步。
首先定义日志打印类
private void log(String message) {StackTraceElement[] elements = Thread.currentThread().getStackTrace();android.util.Log.d(TAG, elements[5].getMethodName() + "() " + message);
}
在没有加锁时的例子
@Test
public void multiThreadTest() {DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");final long timeMillSec = Calendar.getInstance().getTimeInMillis();List<Thread> threadList = new ArrayList<>();for (int i = 0; i < 20; i++) {Thread t = new Thread(new DateFormatTask(dateFormat, timeMillSec));t.setName("thread-" + i);t.start();threadList.add(t);}try {Thread.sleep(3000L);} catch (InterruptedException e) {e.printStackTrace();}
}/*** SimpleDateFormat测试,没有加锁版本*/
private class DateFormatTask implements Runnable {private DateFormat dateFormat;private long timeMillSec = 0;private DateFormatTask(DateFormat dateFormat, long timeMillSec) {this.dateFormat = dateFormat;this.timeMillSec = timeMillSec;}@Overridepublic void run() {String dateText = dateFormat.format(new Date(timeMillSec));long parseTimeMillSec = 0L;try {parseTimeMillSec = dateFormat.parse(dateText).getTime();String newDateText = dateFormat.format(new Date(parseTimeMillSec));log(Thread.currentThread().getName() + " timeMillSec: " + timeMillSec+ ", dateText: " + dateText+ ", parseTimeMillSec: " + parseTimeMillSec+ ", newDateText: " + newDateText);} catch (ParseException e) {log(Thread.currentThread().getName() + ", parse failed. "+ e.getClass().getSimpleName() + " " + e.getMessage()+ " timeMillSec: " + timeMillSec);} catch (Exception e) {log(Thread.currentThread().getName() + ", parse failed. "+ e.getClass().getSimpleName() + " " + e.getMessage()+ " timeMillSec: " + timeMillSec);}}
}
输出结果
05-04 22:28:21.871 3337 3456 D SimpleDateFormatTest: run() sync-thread-1 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.872 3337 3455 D SimpleDateFormatTest: run() sync-thread-0 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.872 3337 3458 D SimpleDateFormatTest: run() sync-thread-3 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.872 3337 3457 D SimpleDateFormatTest: run() sync-thread-2 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.873 3337 3459 D SimpleDateFormatTest: run() sync-thread-4 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.873 3337 3460 D SimpleDateFormatTest: run() sync-thread-5 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.874 3337 3461 D SimpleDateFormatTest: run() sync-thread-6 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.874 3337 3462 D SimpleDateFormatTest: run() sync-thread-7 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.874 3337 3463 D SimpleDateFormatTest: run() sync-thread-8 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.875 3337 3464 D SimpleDateFormatTest: run() sync-thread-9 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.875 3337 3465 D SimpleDateFormatTest: run() sync-thread-10 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.876 3337 3466 D SimpleDateFormatTest: run() sync-thread-11 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.876 3337 3467 D SimpleDateFormatTest: run() sync-thread-12 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.876 3337 3469 D SimpleDateFormatTest: run() sync-thread-14 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.877 3337 3470 D SimpleDateFormatTest: run() sync-thread-15 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.877 3337 3468 D SimpleDateFormatTest: run() sync-thread-13 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.878 3337 3471 D SimpleDateFormatTest: run() sync-thread-16 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.878 3337 3473 D SimpleDateFormatTest: run() sync-thread-17 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.878 3337 3474 D SimpleDateFormatTest: run() sync-thread-18 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:28:21.879 3337 3475 D SimpleDateFormatTest: run() sync-thread-19 timeMillSec: 1588602501868, dateText: 2020-05-04 22:28:21, parseTimeMillSec: 1588602501000, newDateText: 2020-05-04 22:28:21
05-04 22:30:47.752 4040 4163 D SimpleDateFormatTest: run() thread-6 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -62125090153000, newDateText: 0001-05-04 22:30:47
05-04 22:30:47.752 4040 4166 D SimpleDateFormatTest: run() thread-9 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -62125090153000, newDateText: 0001-05-04 22:30:47
05-04 22:30:47.753 4040 4168 D SimpleDateFormatTest: run() thread-11 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 1588602600000, newDateText: 2020-05-04 22:30:00
05-04 22:30:47.753 4040 4170 D SimpleDateFormatTest: run() thread-13 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 1588602647000, newDateText: 2020-05-04 22:30:47
05-04 22:30:47.753 4040 4157 D SimpleDateFormatTest: run() thread-0 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 1575122474000, newDateText: 2019-11-30 22:01:14
05-04 22:30:47.753 4040 4164 D SimpleDateFormatTest: run() thread-7 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 1575122474000, newDateText: 2019-11-30 22:01:14
05-04 22:30:47.753 4040 4179 D SimpleDateFormatTest: run() thread-16 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 95615325030000, newDateText: 4999-00-09 00:30:47
05-04 22:30:47.753 4040 4160 D SimpleDateFormatTest: run() thread-3 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -62108839757000, newDateText: 0001-02-05 06:43:47
05-04 22:30:47.754 4040 4158 D SimpleDateFormatTest: run() thread-1 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -61943447773000, newDateText: 0007-05-06 16:43:47
05-04 22:30:47.754 4040 4165 D SimpleDateFormatTest: run() thread-8 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -61462403713000, newDateText: 0000-05-04 22:04:47
05-04 22:30:47.754 4040 4162 D SimpleDateFormatTest: run() thread-5 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -61462403713000, newDateText: 0020-05-04 22:04:47
05-04 22:30:47.754 4040 4174 D SimpleDateFormatTest: run() thread-14 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 1588602167000, newDateText: 2020-05-04 22:22:47
05-04 22:30:47.754 4040 4169 D SimpleDateFormatTest: run() thread-12 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -62156474173000, newDateText: 0030-05-04 22:22:47
05-04 22:30:47.754 4040 4175 D SimpleDateFormatTest: run() thread-15 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 95628263447000, newDateText: 5000-05-04 22:30:47
05-04 22:30:47.754 4040 4167 D SimpleDateFormatTest: run() thread-10 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 102002769047000, newDateText: 5202-05-04 22:30:47
05-04 22:30:47.754 4040 4161 D SimpleDateFormatTest: run() thread-4 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 1575124247000, newDateText: 2019-11-30 22:30:47
05-04 22:30:47.755 4040 4159 D SimpleDateFormatTest: run() thread-2 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -61462402153000, newDateText: 0022-05-04 22:30:47
05-04 22:30:47.755 4040 4187 D SimpleDateFormatTest: run() thread-19 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: 1588602647000, newDateText: 2020-05-04 22:30:47
05-04 22:30:47.757 4040 4182 D SimpleDateFormatTest: run() thread-17 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -62169758953000, newDateText: 0002-12-04 22:30:47
05-04 22:30:47.757 4040 4183 D SimpleDateFormatTest: run() thread-18 timeMillSec: 1588602647748, dateText: 2020-05-04 22:30:47, parseTimeMillSec: -62169758953000, newDateText: 0002-12-04 22:30:47
加锁版本例子
@Test
public void multiThreadSyncTest() {DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");final long timeMillSec = Calendar.getInstance().getTimeInMillis();List<Thread> threadList = new ArrayList<>();for (int i = 0; i < 20; i++) {Thread t = new Thread(new SyncDateFormatTask(dateFormat, timeMillSec));t.setName("sync-thread-" + i);t.start();threadList.add(t);}try {Thread.sleep(3000L);} catch (InterruptedException e) {e.printStackTrace();}
}/*** SimpleDateFormat测试,加锁版本*/
private class SyncDateFormatTask implements Runnable {private DateFormat dateFormat;private long timeMillSec = 0;private SyncDateFormatTask(DateFormat dateFormat, long timeMillSec) {this.dateFormat = dateFormat;this.timeMillSec = timeMillSec;}@Overridepublic void run() {synchronized (dateFormat) {String dateText = dateFormat.format(new Date(timeMillSec));long parseTimeMillSec = 0L;try {parseTimeMillSec = dateFormat.parse(dateText).getTime();String newDateText = dateFormat.format(new Date(parseTimeMillSec));log(Thread.currentThread().getName() + " timeMillSec: " + timeMillSec+ ", dateText: " + dateText+ ", parseTimeMillSec: " + parseTimeMillSec+ ", newDateText: " + newDateText);} catch (ParseException e) {log(Thread.currentThread().getName() + ", parse failed. "+ e.getClass().getSimpleName() + " " + e.getMessage()+ " timeMillSec: " + timeMillSec);} catch (Exception e) {log(Thread.currentThread().getName() + ", parse failed. "+ e.getClass().getSimpleName() + " " + e.getMessage()+ " timeMillSec: " + timeMillSec);}}}
}
输出结果
05-04 22:32:52.261 4421 4483 D SimpleDateFormatTest: run() sync-thread-1 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.262 4421 4482 D SimpleDateFormatTest: run() sync-thread-0 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.263 4421 4484 D SimpleDateFormatTest: run() sync-thread-2 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.264 4421 4485 D SimpleDateFormatTest: run() sync-thread-3 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.265 4421 4486 D SimpleDateFormatTest: run() sync-thread-4 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.266 4421 4490 D SimpleDateFormatTest: run() sync-thread-7 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.267 4421 4492 D SimpleDateFormatTest: run() sync-thread-9 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.267 4421 4493 D SimpleDateFormatTest: run() sync-thread-10 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.268 4421 4488 D SimpleDateFormatTest: run() sync-thread-5 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.269 4421 4491 D SimpleDateFormatTest: run() sync-thread-8 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.270 4421 4489 D SimpleDateFormatTest: run() sync-thread-6 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.271 4421 4494 D SimpleDateFormatTest: run() sync-thread-11 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.271 4421 4496 D SimpleDateFormatTest: run() sync-thread-13 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.272 4421 4495 D SimpleDateFormatTest: run() sync-thread-12 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.273 4421 4498 D SimpleDateFormatTest: run() sync-thread-14 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.273 4421 4499 D SimpleDateFormatTest: run() sync-thread-15 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.274 4421 4501 D SimpleDateFormatTest: run() sync-thread-17 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.275 4421 4503 D SimpleDateFormatTest: run() sync-thread-19 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.275 4421 4500 D SimpleDateFormatTest: run() sync-thread-16 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
05-04 22:32:52.276 4421 4502 D SimpleDateFormatTest: run() sync-thread-18 timeMillSec: 1588602772243, dateText: 2020-05-04 22:32:52, parseTimeMillSec: 1588602772000, newDateText: 2020-05-04 22:32:52
对比两个例子可以看出来,没加锁时会打印不同的日期,而加锁后就不会造成日期混乱了。
分析原因:主要因为SimepleDateFormat共用成员变量protected Calendar calendar;导致的。
SimpleDateFormat多线程问题相关推荐
- java.text.SimpleDateFormat多线程下的问题
1. 今天在做性能压测的时候发现java.text.SimpleDateFormat多线程下的错误 2. 先贴出两段错误大家看一下: Exception in thread "pool-1- ...
- SparkStreaming编程
0. SparkStreaming 流式计算简介 SparkStreaming实时处理入门案例 SparkStreaming和HDFS整合 SparkStreaming与Kafka整合 SparkSt ...
- JEECG 3.7.1版本发布,企业级JAVA快速开发平台
JEECG 3.7.1 版本发布,企业级JAVA快速开发平台 ---------------------------------------- Version: Jeecg_3.7.1 项 目: ...
- Java日期时间类及计算
1. Java中与日期相关的类 1.1 java.util包 类名 具体描述 Date Date对象算是JAVA中历史比较悠久的用于处理日期.时间相关的类了,但是随着版本的迭代演进,其中的众多方法都已 ...
- Java开发规范整理
Java开发规范整理 (参考<Java开发手册嵩山版>) 文章目录 Java开发规范整理 一.编程规约 (一)命名 (二)常量定义 (三)代码格式 (四)OOP面向对象程序设计 (五)时间 ...
- 丢失的8小时去哪里了?SimpleDateFormat线程不安全,多线程初始化异常解决方案
前言 本次参加了2月份的征文活动,说是对时间的处理问题,我这有2个点需要分享一下,一个是上大学的时候碰到的,还有就是在工作中遇到的由于[SimpleDateFormat线程不安全]在多线程时间初始化的 ...
- 多线程、并发及线程的基础问题
1)Java 中能创建 volatile 数组吗? 能,Java 中可以创建 volatile 类型数组,不过只是一个指向数组的引用,而不是整个数组.我的意思是,如果改变引用指向的数组,将会受到 vo ...
- dateformat java 并发_java.text.DateFormat 多线程并发问题
在日常开发中,java.text.DateFormat 应该算是使用频率比较高的一个工具类,经常会使用它 将 Date 对象转换成字符串日期,或者将字符串日期转化成 Date 对象.先来看一段眼熟的代 ...
- java 静态代码块 多线程,Java多线程编程笔记10:单例模式
立即加载:"饿汉模式" 立即加载就是指使用类的时候已经将对象创建完毕,常见的实现方法就是直接new实例化.也就是在调用方法前,实例就被创建了.示例代码如下所示: class MyO ...
- 深入理解Java:SimpleDateFormat安全的时间格式化
转自:http://www.cnblogs.com/peida/archive/2013/05/31/3070790.html 想必大家对SimpleDateFormat并不陌生.SimpleDate ...
最新文章
- 达观杯_构建模型(三)lightGBM
- UWP 推荐 - 限时免费的RSS阅读器《RSS 追踪》登录 Windows 10
- Fatal error in launcher: Unable to create process using ‘“d:\python3.6\python.exe“ “D:\python3.6\Sc
- 利用IDA6.6进行apk dex代码动态调试
- 粉丝给我发色情app,我反手对色情app渗透,我居然发现了 ....
- Java中关于枚举的7种用法
- DataGridView DataSource 如何实现排序
- 单片机定时器_51单片机的定时器如何计算初值?
- 瑞士军刀Netcat的使用方法
- 设计模式-工厂模式(二)
- oracle-第N篇加强专题
- JavaScript从入门到精通(全)
- 显卡性能测试软件的是,显卡性能测试软件
- 5A成绩通过PMP,备考经验总结——姜飞
- diskgenius克隆硬盘无法启动_用diskgenius成功拷出故障硬盘数据
- 笔记本电脑怎样当无线服务器,笔记本当无线路由器怎么设置【详细步骤】
- 强化学习(4):策略梯度Policy Gradient算法
- python调包师_为“Python调包侠” 画像
- 设计师:设计师知识储备(硬装、软装、榻榻米、马卡龙、地台、公共空间、玄关、闭水实验)之详细攻略
- python文件路径path
热门文章
- 210.课程表II(力扣leetcode) 博主可答疑该问题
- 565.数组嵌套(力扣leetcode) 博主可答疑该问题
- 697.数组的度(力扣leetcode) 博主可答疑该问题
- java int 位_java int是几位
- python gui哪个好看_python的GUI选择什么方案比较好?
- linux使用flock文件锁解决crontab冲突问题
- mycat-mysql读写分离
- 偶们院就业相关政策及问题解答----吃面
- 【转】博客美化(6)为你的博文自动添加目录
- mysql统计一张表中条目个数的方法