파이썬에서 API 문서에서 코드를 테스트하는 초보자, 오류가 발생하면 도움을 요청하십시오.
import matplotlib.pyplot as plt
import json
def main():
plt.plot([3,6,2,4,7,1])
LogStatus(plt)
table = {type: ‘table’, title: ‘보장 정보’, cols: [‘열1, ‘열2’], rows: [ [‘abc’, ‘def’], [‘ABC’, ‘support color #ff0000’]]}
LogStatus(’' + JSON.stringify(table)+'’) # JSON 서열화 후 양쪽을 더함字符, 视为一个复杂消息格式(当前支持表格) LogStatus('第一行消息\n’ + JSON.stringify(table)+’\n第三行消息') # 表格信息也可以在多行中出现 LogStatus('’ + JSON.stringify([table, table])+‘`’) # 여러 표를 동시에 표시할 수 있습니다. TAB로 그룹으로 표시됩니다.