1.单服务端,单客户端的Sokect通信: Server端: 1 package socket.demo.singlethread; 2 3 import java.io.BufferedReader; 4 import java.io.InputStream; 5 import java.io.I ...
分类:
编程语言 时间:
2020-12-24 11:56:58
阅读次数:
0
{myproject}/websocket.py 1 # websocket.py 2 async def websocket_application(scope, receive, send): 3 while True: 4 event = await receive() 5 6 if even ...
分类:
Web程序 时间:
2020-12-24 11:39:43
阅读次数:
0
from selenium import webdriver # 成功导入第三方包 import time from selenium.webdriver.common.action_chains import ActionChains db = webdriver.Chrome() # 选择浏览器 ...
分类:
其他好文 时间:
2020-12-23 12:33:54
阅读次数:
0
参数必须要传,不用也要传空 set(getdep1 ${CMAKE_SOURCE_DIR}/clone.sh) execute_process(COMMAND ${getdep1} "") set(MAKE_CMD "${CMAKE_CURRENT_SOURCE_DIR}/makeHeaders.s ...
分类:
其他好文 时间:
2020-12-23 11:53:16
阅读次数:
0
 { var threadStart = new Thr ...
分类:
其他好文 时间:
2020-12-22 12:32:26
阅读次数:
0
skip:无条件跳过 @pytest.mark.skip 1 import pytest 2 3 class Test_One(): 4 @pytest.mark.skip 5 def test_01(self): 6 print(" > test_01") 7 8 def test_02(self ...
分类:
其他好文 时间:
2020-12-22 12:26:32
阅读次数:
0
function ajaxGet(url) { return new Promise((resolve, reject) => { let xhr = new XMLHttpRequest(); xhr.open("GET",url,true); xhr.send(); xhr.onreadysta ...
分类:
Web程序 时间:
2020-12-22 12:01:40
阅读次数:
0
主3306my.cnf [client] port = 3306 socket = /var/lib/mysql/3306-mysql.sock [mysqld] user = hdfs port = 3306 socket = /var/lib/mysql/3306-mysql.sock data ...
分类:
数据库 时间:
2020-12-21 11:31:29
阅读次数:
0