笨方法学习Python-习题12:提示别人

来源:互联网 发布:淘宝活动广场在哪 编辑:程序博客网 时间:2024/05/29 09:47
# coding=utf-8age = input("How old are you? ")height = input("How tall are you?")weight = input("How much do you weight?")print(("So,you're %r old,%r tall and %r heavy.")%(age,height,weight))"""1.在Windows窗口中查看函数介绍:python -m pydoc input  退出:q2.再次强调:记住 %r 是 debug 专用,它显示的是原始表示出来的字符,而 %s 是为了显示给用户"""

原创粉丝点击