- 博客(2)
- 资源 (1)
- 收藏
- 关注
转载 python两种生成md5的方法
一. 使用md5包 import md5 src = 'this is a md5 test.' m1 = md5.new() m1.update(src) print m1.hexdigest() 二. 使用hashlib import hashlib m2 = hashlib.md5() m2.update(src) print m2.hex
2016-05-31 14:50:00
2115
转载 Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
最近在编写Python脚本过程中遇到一个问题比较奇怪:Python脚本完全正常没问题,但执行总报错"AttributeError: 'module' object has no attribute 'xxx'"。这其实是.pyc文件存在问题。 问题定位: 查看import库的源文件,发现源文件存在且没有错误,同时存在源文件的.pyc文件 问题解决方法: 1. 命名py脚本时,不
2016-05-31 10:00:20
23919
3
linux centos stress离线安装
2020-11-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人