Calculate the length of return single byte and double byte character mixed string

Time:2021-2-21

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, .xlsxWhen 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