Commit fcace6b6 by BellCodeEditor

auto save

parent e6a2cb7a
Showing with 9 additions and 0 deletions
# 创建一个变量:请问您叫什么名字?input(),"="是赋值符号
name=input("请问您叫什么名字?")
#创建一个变量:请问你的性别是?input()
sex=input("请问你的性别是?")
# 判断性别是男的还是女的?用条件判断语句:if复合语句+“:”、“==”是等于符号
if sex=="男":
print("欢迎光临"+name+"先生")
else:
print("欢迎光临"+name+"女士")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment