2020-08-08から1日間の記事一覧
文字列 単一引用符(')でも二重引用符(")でも良い ただし、三重引用符(""")で文字列を囲む場合は二重引用符を用いる str1 = "abc" str2 = 'def' ##### 改行を含む str3 = """ghi jkl mno""" str4 = '%s xxx' % str1 #abc xxx str5 = '%s %s' % (str1, str2) #…
文字列 単一引用符(')でも二重引用符(")でも良い ただし、三重引用符(""")で文字列を囲む場合は二重引用符を用いる str1 = "abc" str2 = 'def' ##### 改行を含む str3 = """ghi jkl mno""" str4 = '%s xxx' % str1 #abc xxx str5 = '%s %s' % (str1, str2) #…