首页 > 编程语言 > 详细

001.python自我记录

时间:2021-06-23 21:54:44      阅读:10      评论:0      收藏:0      [点我收藏+]

1.编码表:常用UTF-8、BGK

2.第一个代码:print("hello,world!")

3.if代码:

number = 50

q = input("请输入你的猜测数字:")

if q == 50:

  print("You get the answer!")

elif q < 50:

  print("Your number is too low.")

else q > 50:

  print("Your number is too high.")

4.算数代码

name = input("your name:")

age = input("your age:")

OS = 80

last_year = OS - int(age)

print("There are " + last_year +" years you can live.")

001.python自我记录

原文:https://www.cnblogs.com/sjdde/p/14924470.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!