#bytes
说明:类型转换为 bytes。
def bytes(x):
'''
类型转换为 bytes
:param x: 一个变量
:return: x 转换为 bytes 后的值
'''
示例:
print(bytes(10))
print(bytes('hello', encoding='utf-8'))
>>> Establishing WebAssembly Runtime.
>>> Standby.
Powered by Shift.
创建于 2025/5/9
更新于 2025/5/16