作者:Java学术趴
仓库:Github、Gitee
✏️博客:CSDN、掘金、InfoQ、云+社区
公众号:Java学术趴
特别声明:原创不易,未经授权不得转载或抄袭,如需转载可联系小编授权...所谓内置函数就是可以直接拿过来使用的函数,Python已经帮我们内部实现了逻辑,我们只需要直接调用即可,Python一共给我们提供了68个内置函数。...这个数字在 0~255之间
# 将一个字符转换为一个数字
print(chr(65))
# 'A'
print(type(chr(65)))
#
# 在 python 中没有字符类型的数据...3]
print(tuple(charList))
# (1, 2, 3)
print(type(tuple(tupleList)))
#
复制代码
dict()函数:...3], 'tuple': (1, 2, 3)}
print(dic)
# {'name': '李四', 'arr': [1, 2, 3], 'tuple': (1, 2, 3)}
复制代码
10.5