????λ?????????? >> ??????????
Python Socket Client??Server?????
????? ???????[ 2014/7/14 13:53:43 ] ????????Python ????????????
????3. Python Socket Client
??????????????
# -*- coding:utf-8 -*-
from socket import *
def SocketClient():
try:
#????socket????
s=socket(AF_INET??SOCK_STREAM??0)
Colon = ServerUrl.find(':')
IP = ServerUrl[0:Colon]
Port = ServerUrl[Colon+1:]
#????????
s.connect((IP??int(Port)))
sdata='GET /Test HTTP/1.1
Host: %s
'%ServerUrl
print "Request:
%s
"%sdata
s.send(sdata)
sresult=s.recv(1024)
print "Response:
%s
" %sresult
#???Socket
s.close()
except Exception??ex:
print ex
ServerUrl = "192.168.16.15:9999"
SocketClient()
|
????4. ???н??
????Socket Server?????н?????£?
????Socket-Server
????Socket Client?????н?????£?
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???Java??????????Python??????300??Python?????????y?????????????ж????д???Python???Python???????????????????????????????????pythonС???????python????HP??Quality CenterPython??Anaconda??????????????·??Ubuntu ???????Python??????????μ?????????????????????pythonpython unittest??????????????????Pythonд???NoSQL?????python unittest?????????????????????????Python??JIRA?????JIRAAppium+Python????????????????Python????????????е?????????????????Python??SQLite?????????????????Ч?????????ξ??饗Python?棩
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????