-
I have the following code that prints out the keys in a dict. May I ask how to show these output in the I've tried to replace the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ok, seems one way is to put all that I want to show in the BTW, top_level_keys = 'Top level keys: \n'
cnt = 0
for key, val in json_data.items():
# print('key', '{:02d}'.format(cnt), ':', key)
top_level_keys += '\t' + 'key ' + '{:02d}'.format(cnt) + ' : ' + key + '\n'
cnt +=1
top_level_keys Anayway I still want to ask if there is a more efficient, or |
Beta Was this translation helpful? Give feedback.
Ok, there is the
mo.ui.text_area()
function to show multi-line string in a text box.