老赵分享给所有Python爱好者的包包
Project description
You may teast it now, but it's still under cooking ;)
Requirement
-----------
Python >= 3.6 请特别留意!
At last, I left Python2, so will you, right?
Description
-----------
可能您会觉得这个包里面东西五花八门,但我真心希望其中的某些代码对您有用。
比如,如果您使用小米路由器,可能发现不时Internet会掉线,只有手动断开ADSL并重新拨号才能恢复上网?
那么,您可以试试我包里面的zhao.xin_api.MiWiFi对象!
```python
from zhao.xin_api import MiWiFi
MIWIFI = MiWiFi(password='您自己的小米路由器WEB登录密码')
if MIWIFI.is_offline:
if MIWIFI.reconnect():
printf('自动重新拨号成功')
else:
printf('自动重新拨号失败')
```
又或者,您也有百度开发者帐号,想使用百度语音API进行语音识别或者语音合成?
那么,您可以试试我包里面的zhao.xin_api.BaiduYuyin对象!
.. code:: python
>>> from zhao.xin_api import BaiduYuyin
>>> baiduyuyin = BaiduYuyin(api_key='你的百度开发者API_KEY', secret_key='你的百度开发者SECRET_KEY')
>>> baiduyuyin.tts_setup(speed=3, person=4)
>>> baiduyuyin.tts(text='我是百度语音的丫丫')
Installation
------------
.. code:: shell
pip3 install zhao
Upgrade
-------
.. code:: shell
pip3 install -U zhao
Requirement
-----------
Python >= 3.6 请特别留意!
At last, I left Python2, so will you, right?
Description
-----------
可能您会觉得这个包里面东西五花八门,但我真心希望其中的某些代码对您有用。
比如,如果您使用小米路由器,可能发现不时Internet会掉线,只有手动断开ADSL并重新拨号才能恢复上网?
那么,您可以试试我包里面的zhao.xin_api.MiWiFi对象!
```python
from zhao.xin_api import MiWiFi
MIWIFI = MiWiFi(password='您自己的小米路由器WEB登录密码')
if MIWIFI.is_offline:
if MIWIFI.reconnect():
printf('自动重新拨号成功')
else:
printf('自动重新拨号失败')
```
又或者,您也有百度开发者帐号,想使用百度语音API进行语音识别或者语音合成?
那么,您可以试试我包里面的zhao.xin_api.BaiduYuyin对象!
.. code:: python
>>> from zhao.xin_api import BaiduYuyin
>>> baiduyuyin = BaiduYuyin(api_key='你的百度开发者API_KEY', secret_key='你的百度开发者SECRET_KEY')
>>> baiduyuyin.tts_setup(speed=3, person=4)
>>> baiduyuyin.tts(text='我是百度语音的丫丫')
Installation
------------
.. code:: shell
pip3 install zhao
Upgrade
-------
.. code:: shell
pip3 install -U zhao
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
zhao-0.0.16-py3-none-any.whl
(32.5 kB
view hashes)