2018年3月12日

摘要: 网络编程基础(聊天室) 服务端 package main import ( "fmt" "net" "bufio" "os" "strings" ) func MessageSend(conn net.Conn) { var input string for { reader := bufio.Ne 阅读全文
posted @ 2018-03-12 21:47 檐夏 阅读(213) 评论(0) 推荐(0) 编辑
 
摘要: 方法 textwrap.wrap(text,[width[,…]]) import textwrap sample_text = '''aaabbbcccdddeeeedddddfffffggggghhhhhhkkkkkkk''' sample_text2 = '''aaa bbb ccc ddd 阅读全文
posted @ 2018-03-12 19:00 檐夏 阅读(401) 评论(0) 推荐(0) 编辑
 
摘要: Ⅰ. 安装 pip install sqlalchemy Ⅱ. 起步链接 MySQL-Python mysql+mysqldb://<user>:<password>@<host>[:<port>]/<dbname> pymysql mysql+pymysql://<username>:<passw 阅读全文
posted @ 2018-03-12 16:14 檐夏 阅读(231) 评论(0) 推荐(0) 编辑