摘要: python中 getopt 模块,该模块是专门用来处理命令行参数的 函数getopt(args, shortopts, longopts = []) 参数args一般是sys.argv[1:],shortopts 短格式 (-), longopts 长格式(--) 命令行中输入: # python 阅读全文
posted @ 2017-11-01 23:23 ka1n4t 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 先看一段代码 #!/usr/bin/env python3 from socket import * serverName = "10.10.10.132" serverPort = 80 clientSocket = socket(AF_INET, SOCK_STREAM) clientSocke 阅读全文
posted @ 2017-11-01 22:18 ka1n4t 阅读(587) 评论(0) 推荐(0) 编辑