Skip to main content

alsolib v3.4

alsolib开发者:苦逼者钟宇轩

说明:本库为原创库,火焰工作室精心打造

版权所有,侵权必究

alsolib 一个最重要的功能

想知道是谁在看你的学而思作品吗? 他来了~

from alsolib.xes import*
a=getnowuser()
print(a) 
#正常:{'state':True,'user_id':"7821237", "user_name":"苦逼者钟宇轩"}
#未登录:{"state":False,'user_id':"未登录","user_name":"未登录"}

###alsolib(alsolib)主要库介绍说明 ###注:alsolib介绍成功全为0,失败全为-1 内置函数 导入方式:

from alsolib import *

百度百科

a=baidubaike("***")
print(a)

翻译

a=translate("Hello") 
print(a)

天气

a=getweather("guangdong","guangzhou")#省,市的英文
print(a)

内置网页浏览器 title为自定义标题

a=getweather("http://www.asunc.cn/","title")#一定要加http://或https://
print(a)

学而思库说明(alsolib.xes)

###注:alsolib.xes介绍成功全为0,失败全为-1 导入方式

from alsolib.xes import*
a=LoadWork("一个作品的pid")

学而思获取作品赞

b=a.get_likes()
print(b)

学而思获取作品作者

b=a.get_user()
print(b)

学而思获取作品踩的数量

b=a.get_unlikes()
print(b)

学而思获取作品介绍

b=a.get_description()
print(b)

学而思获取作者信息

b=a.get_name_as_pid()
print(b)

学而思获取你对这个作品点赞没有~

while 1:
    b=a.is_like()
    if b==0:
	print("你点赞了")
    if b==-1:
	print("你踩了")
    if b==1:
	print("你没点赞也没踩")

hyChat库(alsolib.hychat)

import alsolib.hychat 

###api库(alsolib.api)

导库

from alsolib.api import*
a=Alsoai()

1.获取IP地理位置:

print(a.get_ipaddress(ip,get_point))
#第一个参数必填,第二个参数选填,填True后会返回城市名和这个城市的中心经纬度城市名
#不填或False则只返回城市名
#错误返回值为-1,成功为0

2.获取道路交通路况:

print(a.get_traffic(road,city))
#全部参数都要填,会返回这个道路的路况,像堵车,畅通......
#错误返回值为-1,成功为0

3.制作AI音频:

print(a.makevoice(text,filename,mode=1,speed=40))
#第一二个参数必填,三四个选填,第一个参数填入发音的文字,第二个参数填路径
#第三个参数填发音人(1为男人,5,6,7为三种不同声音的女人),第四个参数填声音范围(0-100)
#返回值成功为0,错误返回-1

4.AI语音:

print(a.speak(text,mode=1,speed=40))
#第一个参数必填,二三个选填,第一个参数填入发音的文字,第二个参数填发音人
#(1为男人,5,6,7为三种不同声音的女人),第三个参数填声音范围(0-100)
#返回值成功为0,错误返回-1

5.AI智能聊天机器人:

print(a.AI_chat(text,is_speak=False,mode=5))
#第一个参数必填,二三个选填,第一个参数传入你想对机器人说的话,第二个传入
#是否以AI说语音,第三个填发音人(1为男人,5,6,7为三种不同声音的女人)
#成功返回0,AI智能聊天机器人的回答,失败返回-1,404为操作太快

###结束:本介绍解释终归火焰工作室,感谢您的收看~~~

Metadata

Release files for alsolib 3.4.20201231

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alsolib 3.4.20201231
File Size Uploaded
alsolib-3.4.20201231.tar.gz 13.4 kB Details

Release files / alsolib-3.4.20201231.tar.gz

Download URL alsolib-3.4.20201231.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
485f843d99ad4602dc54d637a416b2c02dbfacbedf7a075c8e4e13f46c8022a6
BLAKE2b-256 checksum
How to use checksums
1bca13fe5f0d97fc423c221eceabcddf0dcf7e85b725bdc1095ad3facf00af7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page