From b34f7664dac3517bb8fe11c06b73d55ff4ffacf7 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 4 Aug 2009 19:37:33 -0700 Subject: [PATCH] list of characters --> tuple of characters --- strings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.html b/strings.html index 9ea13a6..299f9a1 100755 --- a/strings.html +++ b/strings.html @@ -93,7 +93,7 @@ My alphabet starts where your alphabet ends!
&m '深入 Python 3'
  1. To create a string, enclose it in quotes. Python strings can be defined with either single quotes (') or double quotes ("). -
  2. The built-in len() function returns the length of the string, i.e. the number of characters. This is the same function you use to find the length of a list. A string is like a list of characters. +
  3. The built-in len() function returns the length of the string, i.e. the number of characters. This is the same function you use to find the length of a list, tuple, set, or dictionary. A string is like a tuple of characters.
  4. Just like getting individual items out of a list, you can get individual characters out of a string using index notation.
  5. Just like lists, you can concatenate strings using the + operator.