![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
miss_hua
没错,我就会那个家伙,很懒什么都没留下
展开
-
解决ImportError: dlopen(/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/
这里写自定义目录标题 import__("_ssl") ImportError: dlopen(/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib Reference原创 2020-05-27 10:29:50 · 2607 阅读 · 1 评论 -
Python 中函数和方法的区别
实例化出来的去调用,叫做方法. 直接使用类名去调用,叫做函数. from types import MethodType,FunctionType class Foo(object): def __init__(self): self.name="haiyan" def func(self): print(self.name) obj ...转载 2019-05-15 22:18:30 · 1975 阅读 · 0 评论