📜  转换为 ascii - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.224000             🧑  作者: Mango

代码示例1
#python 3.x
text = input("enter a string to convert into ascii values:")
ascii_values = []
for character in text:
    ascii_values.append(ord(character))
print(ascii_values)