Pemula baru menggunakan Python untuk menguji kode dalam dokumentasi API, kesalahan, minta bantuan.
import matplotlib.pyplot as plt
import json
def main():
plt.plot([3,6,2,4,7,1])
LogStatus(plt)
table = {type: ‘table’, title: ‘informasi kepemilikan’, cols: [‘Kolom 1’, ‘Kolom 2’], rows: [ [‘abc’, ‘def’], [‘ABC’, ‘support color #ff0000’]]}
LogStatus(’' + JSON.stringify(table)+'’) # JSON sequenced, ditambah dua sisi字符, 视为一个复杂消息格式(当前支持表格) LogStatus('第一行消息\n’ + JSON.stringify(table)+’\n第三行消息') # 表格信息也可以在多行中出现 LogStatus('’ + JSON.stringify([table, table])+‘`’) # mendukung tampilan multi-tabel, akan ditampilkan dalam satu grup sebagai TAB