1、Python字符串练习


#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''')
原文地址:https://www.cnblogs.com/ludongjun/p/8321849.html