我想从这个
对此
这是密码
@commands.command() #PLAYERS INFO
async def players(self,ctx,ADD,NUM):
with SampClient(address=ADD, port=NUM) as client:
players = [client.name for client in client.get_server_clients()]
lst = [f'{players}']
joined = '\n'.join(lst)
await ctx.send(f'```{joined}```')
只需以换行符作为分隔符连接列表
相关问题 更多 >
编程相关推荐