forked from imkingcn/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex11.py
More file actions
24 lines (20 loc) · 507 Bytes
/
ex11.py
File metadata and controls
24 lines (20 loc) · 507 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#coding:utf-8
#################
# 习题11:提问
#################
# 前言
#
# 这里主要理解:接收用户的输入
#
print "How old are you?",
# 接收控制台的输入信息
age = raw_input()
print "How tall are you?",
height = raw_input()
print "How much do you weight?",
weight = raw_input()
print "So,you're %r old, %r tall and %r heavy." %(
age, height, weight)
# 笔记
# 1.raw_input()是接受控制台输入的任何信息
# 2.在print后面加“,”可以让输入在同一行