- 博客(3)
- 收藏
- 关注
原创 UDP
from socket import *udpSocket = socket(AF_INET,SOCK_DGRAM)udpSocket.bind(("",7788))recvMsg,des = udpSocket.recvfrom(1024)print("%s %s"%(recvMsg.decode("gb2312"),str(des)))
2018-01-01 14:26:01 126
原创 python 网络编程代码TCP Server client
TCP Serverfrom socket import *serverSocket = socket(AF_INET,SOCK_STREAM)serverSocket.bind(("",7788))serverSocket.listen(4)clientSocket,clientInfo = serverSocket.accept()recMsg = clientSocket
2018-01-01 14:24:36 412
原创 C#Sql防注入字符串
"[-|;|,|\/|\(|\)|\[|\]|\}\|\{|%|@|\*|!|\']" public bool IsSafeStr(string str) { return !Regex.IsMatch(str, @"[-|;|,|\/|\(|\)|\[|\]|\}\|\{|%|@|\*|!|\']"); }
2017-11-28 20:20:53 355
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人