python ord()函数
摘要:
python内建函数,参数一个字符。如果是字母,返回ASCII吗,如果是非ASCII字符,返回unicode编码 1 def test_ord(): 2 print(ord('a')) 3 print(ord('A')) 4 print(ord('官')) 5 6 7 test_ord() 阅读全文
posted @ 2025-12-27 17:44 luckygxf 阅读(6) 评论(0) 推荐(0)
posted @ 2025-12-27 17:44 luckygxf 阅读(6) 评论(0) 推荐(0)
posted @ 2025-12-27 00:12 luckygxf 阅读(4) 评论(0) 推荐(0)
posted @ 2025-12-27 00:02 luckygxf 阅读(19) 评论(0) 推荐(0)