2018年4月26日
摘要: # bytes object b = b"example" # str object s = "example" # str to bytes bytes(s, encoding = "utf8") # bytes to str str(b, encoding = "utf-8") # an alternative meth... 阅读全文
posted @ 2018-04-26 13:49 "" 阅读(128) 评论(0) 推荐(0) 编辑
  2018年4月24日
摘要: 字典循环默认取key例子 dict={'name':'john','number':'201801','weight':'80kg','tall':'180cm"} # 直接循环字典默认取key for i in dict: print(i) # 也可以循环key for i in dict(key 阅读全文
posted @ 2018-04-24 15:47 "" 阅读(1267) 评论(0) 推荐(0) 编辑
  2017年8月4日
摘要: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, b 阅读全文
posted @ 2017-08-04 15:11 "" 阅读(985) 评论(0) 推荐(0) 编辑