1? String?
stringPython(? )Python
name = Changsh #?
Age =5000 #?
age_ 1 =5000 #,
Msg = I am in Changsha #
Msg _ 1 = I am in Hengyang #
Hometowm = Changsha #?
Print (type (name), type (age), type (age _ 1), type (message _ 1), type (hometown), sep=|)
2
A = Hello.
b=Python
a+b
HelloPython
,,?
age_ 1=5000
Name+Age _ 1
Backtracking (last call):
Filestdin, line 1, in module
TypeError: it must be str, not int.
A = Hello.
a*3
Hello, hello.
#########0 1234567890 12345367890 123456789
A = Life is short, I use python.
Lens (a)
27
#
a[0]
L
A [- 1]
n
#
...
a[: 13] #,? 12?
Life is but a span.
a[ 15:] #? 15? ,?
I use python
a[ 15::2] #? 15? ,? 2,? ,?
Jupp to.
A [::- 1] #
I don't know what you're talking about. What are you talking about?
str.lower():?
str.upper():?
str.swapcase():?
str.capitalize():? ,
str.title():? ,,?
A = Life is short, I use python.
a.lower() #
Life is short, I use python.
a.upper() #
Life is short, I use PYTHON.
A. Exchange enzyme () #
Life is short, I use PYTHON.
a.capitalize
Life is short, I use python.
a.title() #?
Life is short, I use Python.
str.center()
str.ljust()?
str.rjust()?
str.zfill()? 0
str.lstrip()
str.rstrip()
str.strip()
be good at
=COUNTIF(B2:B3 1,=30)/COUNT(B2:B3 1)
isalnum()?
isalpha()?
isdigit()