python

dk= "duck"

print(dk.title()) 首字母大写,其它小写

print(dk.upper())所有的大写

print(dk.lower())所有都小写



firstname= "duck"

lastname= "man"

full= firstname + "_" + lastname

print("hello,"+"99999"+full+"000000"+"?")


python中用加号合并字符串

你可能感兴趣的:(python)