首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >习题12:提示别人

习题12:提示别人

作者头像
py3study
发布2018-08-02 11:25:25
发布2018-08-02 11:25:25
4860
举报
文章被收录于专栏:python3python3

练习代码如下

代码语言:javascript
复制
# coding: utf-8
__author__ = 'www.py3study.com'
age = input(u"How old are you ?")
height = input(u"How tall are you ?")
weight = input(u"How much do you weight ?")
print("So, you're {} old, {} tall and {} heavy.".format(age, height, weight))

应该看到的结果

How old are you ?18 How tall are you ?180 How much do you weight ?130 So, you're 18 old, 180 tall and 130 heavy.

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2017/11/09 ,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档