#!/usr/bin/env python import tab for i in range(3): name = raw_input(‘Plelease input your name: ‘) if len(name) == 0: continue break print ‘current loop:‘, i age = int(raw_input(‘Plelease input your age: ‘)) sex = raw_input(‘Plelease input your sex: ‘).strip() print """Personal info: name: %s age: %d sex: %s """ %(name,age,sex) if age <= 28: print "you can have hald day‘s " elif sex == ‘F‘: print "let me think about it" else: print "oh ,no"
本文出自 “梁恩宇-9527” 博客,请务必保留此出处http://liangey.blog.51cto.com/9097868/1661421
原文地址:http://liangey.blog.51cto.com/9097868/1661421