6
focar em
16
Seguidores

Ajuda

Criado em: 2017-06-07 09:42:08, atualizado em: 2017-06-07 09:42:37
comments   1
hits   1346

Novos a usar o Python para testar o código na documentação da API, com erros, por favor, peça ajuda.

import matplotlib.pyplot as plt import json def main(): plt.plot([3,6,2,4,7,1]) LogStatus(plt) table = {type: ‘table’, title: ‘Informações sobre as reservas’, cols: [‘Coluna 1, Coluna 2’], rows: [ [‘abc’, ‘def’], [‘ABC’, ‘support color #ff0000’]]} LogStatus(’' + JSON.stringify(table)+'’) # JSON sequenciado em ambos os lados字符, 视为一个复杂消息格式(当前支持表格) LogStatus('第一行消息\n’ + JSON.stringify(table)+’\n第三行消息') # 表格信息也可以在多行中出现 LogStatus('’ + JSON.stringify([table, table])+‘`’) # Suporta a exibição de várias tabelas ao mesmo tempo, sendo exibida em um grupo com o TAB