题目

在Python中,ord( )函数的作用是将字符转换为对应的ASCII码值,chr()函数的作用是将ASCII码值转换为对应的字符。阅读下列程序,写出运行结果。 def encrypt(st1): st2="" for s in stl: st2 += chr(ord(s)+5) return st2 print(encrypt("ktocji")) 运行结果是 答案:【1】python
信息技术 试题推荐
最近更新