时间:2026-02-15 20:37:41
1、str() :将对象转换为字符串。
2、repr():将对象转换为表达式字符串 。
3、eval():用来计算值为有效Python表达式的字符串,并返回一个对象。
4、ord():将Unicode字符转换为它的整数值。