摘要:
tcp聊天,#server端实现:import socketsk=socket.socket() # 实例化socket对象address=("0.0.0.0",8000) #设置端口sk.bind(address) # 绑定IP地址和端口sk.listen(5) #监听while True: co 阅读全文
摘要:
user = socket.socket()#没有参数就使用默认协议ipv4协议,tcp协议 阅读全文
摘要:
import re匹配字符串# pattern = re.compile(r'hello')# match = pattern.search('ni hello cxy61!') #全字符匹配字符串 .search()# search = pattern.match('ai hello') #只在开 阅读全文