Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的 Python 语句是什么意思?
send_data="" str_len = "%#04d" % (len(send_data)/2)
这设置str_len显示长度的一半send_data,用零填充为四个字符。字符%在进行插值。请参阅文档的printf 样式字符串格式部分。
str_len
send_data
%