- 博客(10)
- 收藏
- 关注
原创 cv的label存储格式(xml,txt,json,voc,yolo,coco)之间的关系
cv的label存储格式(xml,txt,json,voc,yolo,coco)之间的关系
2022-12-02 16:48:41 399
原创 day19_am_死锁
死锁例子:public class Demo{ public static Printer printer=new Printer(); public static Scan scan=new Scan(); public static void main(String arg[]) throws Exception { new Thread(new Worker_A()).sta...
2019-10-30 16:17:55 94
原创 day18pm_多线程并发问题
抢夺cpu带来的不安全问题产生条件: 资源共享 有线程并发操作共享资源 且涉及写操作方法:禁止共享资源–ThreadLocal禁止多线程并发操作–Syncronized同步代码块禁止修改–ReadWriteLockSyncronized代码块使用:Syncronized(锁对象){要同步的代码}原理:将产生多线程并发安全问题的代码包裹起来,并选择一个锁对象。锁对象...
2019-10-25 14:15:46 182
原创 day18pm_多线程_thread
Thread 线程方法一://创建类实现Runnable接口 编写run()写执行代码class Run implements Runnable{ @Override public void run() { // TODO Auto-generated method stub int n=1; while(n<4) { System.out.println(" ...
2019-10-24 17:00:36 215
原创 day18am_其他流
Properties用于保存键值对,类似hashmap。继承hashtable,线程安全public static void main(String[] args) { Properties prp=new Properties(); prp.setProperty("asd", "qwe"); System.out.println(prp.getProperty("asd"...
2019-09-14 16:34:00 99
原创 day18_am_ 打印流
PrintStream本身是一个字节流,是一个装饰者,在原有字节流的基础上增加打印功能,更加便利public static void main(String[] args) throws Exception { //创建文件输出流 OutputStream a=new FileOutputStream("D:\\a.txt"); //包装为打印流 PrintStream...
2019-09-13 22:25:41 78
原创 Day17 pm 关于字符流编码问题----转换流
字符流使用默认缓冲区和编码器,编码集是系统码无法调整java提供了转换流,自己编写字节流读取数据,通过转换流 换为字符流,其中可以手动指定码表。InputStreamReader 、 OutputStreamWriterpublic static void main(String[] args) throws Exception { //字节流 FileInputStream in...
2019-09-06 00:32:11 137
原创 Day17 IO字节流
字节流FileInputStreamFileOutputStreampublic static void main(String[] args) throws Exception { FileInputStream in=new FileInputStream("D:\\pdd.jpg"); FileOutputStream out=new FileOutputStream(...
2019-09-05 16:45:33 60
原创 Day17 pm 设计模式
设计模式:套路装饰设计模式主要功能是:在原有的被装饰者的基础上增加其他功能在构造方法里传入了Man的对象public class Demo{ public static void main(String[] args) { Man man=new Man("小明",10); man.eat(); man.sleep(); Sman sman=new Sman(...
2019-09-05 16:21:16 126
原创 D17am IO流
D17am IO流IO流IO流public class Demo{ public static void main(String[] args) throws IOException { long begin=System.currentTimeMillis(); Reader reader=new FileReader("D:\\a.txt"); BufferedRe...
2019-09-04 15:09:42 78
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人