练习2-1
message
=
"
Hello,Python!
"
print
(message)
输出结果:
练习2-4
name
=
"
IamName
"
print
(name.
upper
())
print
(name.
lower
())
print
(name.
title
())
输出结果:
练习 2-9
num
=
110
message
=
"
I love
"
+
str
(num)
+
"
!
"
print
(message)
输出结果:
练习2-11
执行命令 import this
输出结果: