

# 定义字符串
msg = "双引号字符串";
message = '单引号字符串';
print(msg)
print(message)


# 制表符和换行符
print("换行符");
print("\n");
print("\t制表符");


name = "zheng weNjiE";
# 常用方法
print("首字母大写:" + name.title());
print("小写:" + name.lower());
print("大写:" + name.upper());


# 字符串拼接
firstname = "zheng";
lastname = "wenjie";
username = firstname + lastname;
print(username)
print("Hello" + "world");


# 空格
space = "   aaa   ";
print(space);
print(space.strip());
print(space.lstrip());
print(space.rstrip());





