📅  最后修改于: 2022-03-11 14:45:33.224000             🧑  作者: Mango
#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)