• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
谢斐
博客园 首页 新随笔 联系 订阅 订阅 管理
上一页 1 2

2018年5月2日

程序执行流程/布尔类型与布尔:运算猜数字游戏;库的使用:turtle
摘要: import turtle turtle.fillcolor('green') turtle.begin_fill() turtle.shape('turtle') turtle.circle(20) turtle.end_fill() turtle.up() turtle.goto(0,-100) turtle.down() turtle.fillcolor('black') turtle... 阅读全文
posted @ 2018-05-02 21:41 谢斐 阅读(113) 评论(0) 推荐(0)
 
 

2018年4月25日

条件语句,while循环语句:完整的温度转换程序
摘要: while True: a=input('1.摄氏度2.华氏度') if a =='1': c =input('请输入摄氏度') f =float(c)*9/5+32 print('华氏度为{}'.format(f)) elif a=='2': f = float(input('请输入华氏度')) ... 阅读全文
posted @ 2018-04-25 21:29 谢斐 阅读(121) 评论(0) 推荐(0)
 
 

2018年4月18日

理解数据类型与数学运算:求和、温度转换
摘要: a=input('请输入摄氏度温度') b=float(9/5) c=int(32) sum4=int(a)*b+c print('华氏度{}'.format(sum4)) a=input('请输入一个数') b=input('再输入一个数') sum3=int(a)+int(b) print('两个数的总和{}'.format(sum3)) 阅读全文
posted @ 2018-04-18 21:41 谢斐 阅读(104) 评论(0) 推荐(0)
 
输入、输出与Mad Libs 游戏
摘要: name1=input('请输入一个人名') place=input('请输入一个地方') name2=input('请输入一种职业') print('{}的手被刮伤了,他马上去了{},{}和他说幸好你来的及时,不然伤口都愈合了'.format(name1,place,name2)) 阅读全文
posted @ 2018-04-18 20:32 谢斐 阅读(147) 评论(0) 推荐(0)
 
 
上一页 1 2

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3