q987654 发表于 2017-4-20 12:23:34

Python杂记

  Using MD5 to check equality between files - Peterbe.com (Peter Bengtsson on Python, Zope, Kung Fu, London and photos)
  the md5 module is deprecated; use hashlib instead
  15.1. hashlib — Secure hashes and message digests — Python v2.6.4 documentation
  Python中的字符串通过split分割后的使用和把分割后的字符串连接起来_Pc10
  Python天天美味(10) - 除法小技巧 - CoderZh的技术博客 - 博客园
  如何在Python中保留小数?_百度知道
  关于编码方面的定式是,py脚本使用utf-8编码进行储存
  在头处,使用如下脚本
  #!/usr/bin/env python
  # -*- coding:utf8 -*-
  #对产品进行相关性分析
  在需要输出中文显示的地方使用如下的代码
  print u"大家好".encode("gbk","ignore")
  Python字符串的encode与decode研究心得乱码问题解决方法_python_脚本之家
页: [1]
查看完整版本: Python杂记