问题描述
所以现在我开始研究并想出了第一个游戏cod mw 我有使用
pip install callofduty.py
和
import asyncio
import callofduty
from callofduty import Mode,Platform,Title
async def main():
client = await callofduty.Login("YourEmail@email.com","YourPassword")
results = await client.SearchPlayers(Platform.Activision,"Captain Price",limit=3)
for player in results:
print(f"{player.username} ({player.platform.name})")
me = results[1]
profile = await me.profile(Title.ModernWarfare,Mode.Multiplayer)
level = profile["level"]
kd = profile["lifetime"]["all"]["properties"]["kdRatio"]
wl = profile["lifetime"]["all"]["properties"]["wlRatio"]
print(f"\n{me.username} ({me.platform.name})")
print(f"Level: {level},K/D Ratio: {kd},W/L Ratio: {wl}")
asyncio.get_event_loop().run_until_complete(main())
您能告诉我如何利用此功能,还是只告诉我我四天左右被卡住的代码,又不知道如何继续
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)