for循环语句、ord()函数的应用
''' 在终端中获取一个字符串,打印每个字符的编码值 ''' string = input('请输入任意内容:') for i in string: print(ord(i))