第一周学习语法内容

Posted xuchun012

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了第一周学习语法内容相关的知识,希望对你有一定的参考价值。

income_of_xc = 3000
count = 0
while count <3:
gusee_income =int( input("gusee_income:"))
if gusee_income == income_of_xc:
print("Excellent, right!")
continue
elif gusee_income > income_of_xc:
print("Too much, less!")
else:
print("Too little, a little more!")
count +=1
if count ==3:
gose = input("Do you want to continue?")
if gose != "n":
count = 0





name = input("姓名:")
age = int(input("年龄:") )
job = input("工作:")
信息 = ‘‘‘
------------ %s的信息 ---------
姓名:%s
年龄:%d
工作:%s
‘‘‘ % (name,name,age,job)
print(信息)




print("Hello world!")

name = "xuchun "
name2 = name
print("My name is",name)

name = "xuchun2"

print(name,name2)

print("xuchun")




print("hello world!")
name = input("name:")
age = int(input("age:"))
print(type(age) , type(str(age)))
job = input("job:")

info = ‘‘‘
------------ info of %s ------------
name:%s
age:%d
job:%s
‘‘‘ % (name,name,age,job)
print(info)



_usename = ‘xuchun‘
_password = ‘a123456‘
count = 0
while count <3:
usename = input("usename:")
password = input("password:")
print(usename,password)
if _usename == usename and _password == password:
print("Input the correct! login......")
break
else:
print("Wrong user name or password!")
count +=1
if count == 3:
print("Too many times, the account has been frozen!")




























































































以上是关于第一周学习语法内容的主要内容,如果未能解决你的问题,请参考以下文章

20165217叶佺《程序设计与数据结构》第一周学习总结

# 20175329 2018-2019-2 《Java程序设计》第一周学习总结

201711671114《Java程序设计》第一周学习总结

第一周学习总结

机器学习-第一周

ChatGPT-英语练习第一天-2023.3.24