下列输出结果正确的是( )。
A: print(ord('Z'))为90
B: print(chr(90))为Z
C: print(ord('A'))为65
D: print(chr(66))为B
A: print(ord('Z'))为90
B: print(chr(90))为Z
C: print(ord('A'))为65
D: print(chr(66))为B
举一反三
- 【单选题】Python中,下列哪个语句可以输出字符”C“的编码? A. ord("C") B. chr("C") C. print(ord("C")) D. print(chr("C"))
- print(chr(65))的运行结果为()
- 若有表达式a=chr(ord('A')+33),则print()的值为() A: a B: b C: A D: B
- = chr((i+13) % 26 + ord("a")) for c in "Python": print(d.get(c, c), end="")
- 如果p=ord(‘a’),表达式print(p,chr((p+3)%26+ord('a')))的结果是: