Single byte length of string
Calculate the length of return single byte and double byte character mixed string
#!/usr/bin/env python3
Tips: in generating
.xls, .xlsx
When waiting for a file, you can use this function to calculate the byte length of the cell content and adjust the column width accordingly.
This work adoptsCC agreementReprint must indicate the author and the link of this article