搜尋此網誌

2022年9月14日星期三

Strings in Python

A string is a sequence of characters. A character is simply a symbol. For example, the English language has 26 characters.

Python can manipulate strings, which can be expressed in several ways. They can be enclosed in single quotes ('...') or double quotes ("...") with the same result.

print("hello I don't like single quote at all")

print('hello I don\'t like single quote at all')

沒有留言:

發佈留言