原创 python str與bytes之間的轉換

  # bytes object   b = b"example"   # str object   s = "example"   # str to bytes   bytes(s, encoding = "utf8")   # b

原创 我的友情鏈接

51CTO博客開發馬哥教育LinuxChris On the wayShare your knowledge …xiexiaojun王春海的博客哥不是海盜wu大俠的博客Linux運維之路啓示錄For The Dream毛竹之勢vinsent

原创 python核心第三版之網絡編程

創建TCP服務器僞代碼:    s = socket()                    #創建服務器套接字    s.bind()                        #套接字與地址綁定    s.listen()    

原创 python3 套接字異常(a byte-like object is required not str)

#修改代碼 from socket import * from time import ctime HOST = 'localhost' PORT = 21567 BUFSIZ = 1024 ADDR = (HOST,PORT) t

原创 我的友情鏈接

51CTO博客開發馬哥教育LinuxChris On the wayShare your knowledge …xiexiaojun王春海的博客哥不是海盜wu大俠的博客Linux運維之路啓示錄For The Dream毛竹之勢vinsent