Skip to main content
 首页 » 编程设计

python之将 Packet.show() 表示形式放入字符串变量中

2025年05月04日22飞鱼

<分区>

是否有可能将 Packet.show() 给我的表示放入字符串变量中?

像这样

representation = somePacket.show() 
print representation # will print nothing 

所以我可以存储它以备后用,并在需要时打印出来?