字符串類型(str)

字符串是字符的序列,基本上就是一組單詞,是Python中最常用的數據類型,常用單引號('')或雙引號("")創建字符串,也可以使用三引號(''''''或"""""") 示例 str1 = "ali001" str2 = 'ali002' str3 = """Hello""" str4 = '''My name is ali.''' print("str1 is: %s" % str1) prin
相關文章
相關標籤/搜索