安装sinaweibo.py

如何根据路径查找文件和目录

cmd+shift+G

如何查看python路径

import sys

sys.path

如何安装下载包

cd \..\..\\\\....\\.  

pip install sinaweibo  #  没有后缀

如何下载sinaweibo.py  (python3.6 )

https://github.com/r569594043/sinaweibopy

一定要把sdk 拷贝到工具目录下,否则import 时可能会报错

import weibo

 dir(weibo)

['APIClient', 'APIError', 'HttpObject', 'JsonObject', '_CONTENT_TYPES', '_HTTP_GET', '_HTTP_POST', '_HTTP_UPLOAD', '__author__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__publish__', '__spec__', '__version__', '_encode_multipart', '_encode_params', '_guess_content_type', '_http_call', '_http_get', '_http_post', '_http_upload', '_obj_hook', 'json', 'logging', 'main', 'time', 'urllib']

猜你喜欢

转载自blog.csdn.net/hellocsz/article/details/87519817
py