#Python字符串的拼接,以及单双引号的运用
print(‘abc‘,‘efg‘)
print("abc","efg") print(‘abc‘+‘efg‘) print(‘"abc"‘) print("‘abc‘")
#字符串的多行输出 print(‘‘‘abc‘‘‘) print(‘‘‘a b c d‘‘‘) print(‘‘‘"wode"+‘word‘ feide paode‘‘‘)
Posted ludongjun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1Python字符串练习相关的知识,希望对你有一定的参考价值。
#Python字符串的拼接,以及单双引号的运用
print(‘abc‘,‘efg‘)
print("abc","efg") print(‘abc‘+‘efg‘) print(‘"abc"‘) print("‘abc‘")
#字符串的多行输出 print(‘‘‘abc‘‘‘) print(‘‘‘a b c d‘‘‘) print(‘‘‘"wode"+‘word‘ feide paode‘‘‘)
以上是关于1Python字符串练习的主要内容,如果未能解决你的问题,请参考以下文章