Merge branch 'master' into woodhead_pywxdump
Signed-off-by: xaoyaoo <37209452+xaoyaoo@users.noreply.github.com>
This commit is contained in:
commit
4fe017143d
@ -244,17 +244,15 @@ def wordcloud_generator(text, out_path="", is_show=False, img_path="", font="C:\
|
|||||||
wordcloud_img = wordcloud1.to_image()
|
wordcloud_img = wordcloud1.to_image()
|
||||||
wordcloud_img.show()
|
wordcloud_img.show()
|
||||||
|
|
||||||
|
def read_BytesExtra(bytes_extra):
|
||||||
def read_BytesExtra(data):
|
|
||||||
if bytes_extra is None:
|
if bytes_extra is None:
|
||||||
return None
|
return None
|
||||||
deserialize_data = None
|
|
||||||
try:
|
try:
|
||||||
deserialize_data, message_type = blackboxprotobuf.decode_message(bytes_extra)
|
deserialize_data, message_type = blackboxprotobuf.decode_message(bytes_extra)
|
||||||
except Exception as e:
|
|
||||||
print(f"can not decode bytes_extra:{e}")
|
|
||||||
return None
|
|
||||||
return deserialize_data
|
return deserialize_data
|
||||||
|
except Exception as e:
|
||||||
|
# print(f"can not decode bytes_extra:{e}")
|
||||||
|
return None
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
data = ''
|
data = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user