摘要:
import struct """通过 socket 的 send 和 recv 只能传输 str 格式的数据""" """struct.pack""" a1 = 10 a2 = 100 str = struct.pack("ii", a1, a2) print('str = ', str) """struct.unpack""" a1, a2 = struct.unpack(&q 阅读全文
摘要:
soket 编程步骤 # -*- coding: utf-8 -*- ######################################################################## class sckt: """去元音缩写变量名 sckt 指代 socket """ #-----------------------... 阅读全文
摘要:
# -*- coding: utf-8 -*- # %% import tushare import matplotlib.pyplot as plot import time # %% count = 0 while count < 5: # %% rtquotes = tushare.get_realtime_quotes('002237') # %% n... 阅读全文