python

作者: Duckman520 | 来源:发表于2018-05-30 23:02 被阅读0次

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

      本文链接:https://www.haomeiwen.com/subject/kbcfsftx.html