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''')

 

posted @ 2018-01-20 20:35  善行无辙  阅读(152)  评论(0编辑  收藏  举报