2026-01-07
str 是 [[Python]] 的内置类型,用于表示和操作字符串。字符串是由 Unicode 码位构成的不可变序列,可以通过 .encode() 方法编码为 bytes。
str
.encode()