ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
字符串操作 === py就是台灵活了,比如str操作你为什么 直接这样, ~~~ a = 1 b = 2 print(a + b) msg = ' hello world ' print(msg.upper()) print(msg.lower()) print(msg.title()) print(msg.strip()) print(msg.lstrip()) print(msg.rstrip()) >>> 3 HELLO WORLD hello world Hello World hello world hello world hello world ~~~