已读21%
预计阅读本页时间:-
预计阅读本页时间:-
Test Your Knowledge: Quiz
- Can the string find method be used to search a list?
- Can a string slice expression be used on a list?
- How would you convert a character to its ASCII integer code? How would you convert the other way, from an integer to a character?
- How might you go about changing a string in Python?
- Given a string S with the value "s,pa,m", name two ways to extract the two characters in the middle.
- How many characters are there in the string "a\nb\x1f\000d"?
- Why might you use the string module instead of string method calls?