代码改变世界

第五周作业

2025-03-31 11:08  nm1137  阅读(16)  评论(0)    收藏  举报

3.13
s.upper() → 'PYTHON STRING'
s.lower() → 'python string'
s.find('i') → 10
s.replace('ing','gni') → 'Python Strgni'
s.split(' ') → ['Python', 'String']
3.14
Length:23.88
3.15
二进制:110000101(无有效 Unicode 字符)
八进制:605(Unicode 字符:؅)
十进制:389(Unicode 字符:ƅ)
十六进制:185(Unicode 字符:ƅ)