我正在尝试使用以下命令获取服务器中的成员列表discord.py
我的代码是:
@client.command()
async def members(ctx):
members = ctx.guild.members
for member in members:
await ctx.send(member.name)
await ctx.send("done")
Run Code Online (Sandbox Code Playgroud)
但问题是它只发送机器人的名称。如果您找出代码中的问题,那么您能帮我吗,我想要所有成员的名字。
我有例如这个整数number<-500000或number1<-1000000.
我需要格式化它们[1] 500 000 [1] 1 000 000.
怎么做?
我对音频信号很陌生。我们这里使用的值 32768 是多少?
示例代码:
rate, data = wavfile.read(wav_loc)
data = data / 32768
Run Code Online (Sandbox Code Playgroud) python voice audio-recording voice-recognition noise-reduction
当我在 Pycharm 中运行任何使用 Numpy 的程序时,它返回以下错误:
init_dgelsd failed init
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/private/var/folders/0_/ry6vqn855lq0d7n4mww1fks00000gn/T/AppTranslocation/2710F87A-D4CC-42F0-82D4-81D5521E1E33/d/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/max/venv/lib/python3.9/site-packages/numpy/__init__.py", line 286, in <module>
raise RuntimeError(msg)
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
Run Code Online (Sandbox Code Playgroud)
每当我尝试时都会返回此错误import …