<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> document.write(returnCitySN["cip"]+','+returnCitySN["cnam ...
分类:
其他好文 时间:
2021-02-22 12:48:03
阅读次数:
0
解法一:wait/notify和synchronized的组合 import java.util.LinkedList; import java.util.List; import java.util.concurrent.Semaphore; /** * 实现一个容器,提供add,size方法 * ...
分类:
其他好文 时间:
2021-02-22 12:43:15
阅读次数:
0
Exchanger的功能可以使2个线程之间传输数据,它比生产者消费者模式使用的wait/notify要更加方便,类Exchanger中的exchange()方法具有阻塞的特色,也就是此方法被调用后等待其他线程来取得数据,如果没有其他线程取得数据,则一直阻塞等待。Exchanger主要有两个方法 :e ...
分类:
编程语言 时间:
2021-02-22 12:34:21
阅读次数:
0
一、安装docker-compose curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose chm ...
分类:
其他好文 时间:
2021-02-22 11:52:31
阅读次数:
0
expected_conditions模块: 是Selenium的一个子模块,selenium.webdriver.support.expected_conditions 可以对网页上元素是否存在进行判断,一般用于断言或与WebDriverWait配合使用 1 import time 2 from ...
分类:
Web程序 时间:
2021-02-22 11:51:54
阅读次数:
0
mysql8: alter user 'root'@'localhost' identified by '123456'; mysql5.7: update user set authentication_string = password('123456') where user = 'root' ...
分类:
数据库 时间:
2021-02-22 11:45:52
阅读次数:
0
tomcat加固安全配置 1.禁止目录浏览 在web.xml中进行如下配置: <param-name>listings</param-name> <param-value>false</param-value> 2.开启tomcat日志记录,默认是开启的。 server.xml中配置: <Valve ...
分类:
其他好文 时间:
2021-02-22 11:44:32
阅读次数:
0
[root@op-benchmark-216 ~]# cat /etc/dhcp/dhcpd.conf # dhcpd.conf # # Sample configuration file for ISC dhcpd # # option definitions common to all supp ...
分类:
其他好文 时间:
2021-02-20 12:34:38
阅读次数:
0
先画一个爱心, 源代码: #!/usr/bin/env python # -*- coding:utf-8 -*- import turtle import time # 画心形圆弧 def hart_arc(): for i in range(200): turtle.right(1) turtl ...
分类:
编程语言 时间:
2021-02-20 12:23:41
阅读次数:
0
arr = ["http://music.163.com/song/media/outer/url?id=1820550501.mp3", "http://music.163.com/song/media/outer/url?id=1820550501.mp3", "http://music.163 ...
分类:
编程语言 时间:
2021-02-20 11:52:43
阅读次数:
0