对字符串进行 Base64 编码. :param s: 字符串 :return: 编码后的字符串
(s)
| 46 | |
| 47 | |
| 48 | def encode_base64_string(s): |
| 49 | """对字符串进行 Base64 编码. |
| 50 | |
| 51 | :param s: 字符串 |
| 52 | :return: 编码后的字符串 |
| 53 | """ |
| 54 | encoded = base64.b64encode(s).decode() |
| 55 | return encoded |
| 56 | |
| 57 | |
| 58 | def get_current_time_gmt_format(): |
no test coverage detected