转换为元组(tuple):使用tuple()函数将字符串转换为元组。s = "hello" t = tuple(s) 转换为集合(set):使用set()函数将字符串转换为集合。s = "hello" st = set(s) 转换为字典(dict):使用dict()函数将字符串转换为字典。s = "{'name': 'John', 'age': 30}" d = dict(s) 转换为日期...
我在输出时,将数值型的数据(int)转化成了字符串(str)。