The World Wide Web, restored to 800 pixels of glory.
GeezerVison is showing www.runoob.com — Python 练习实例75 | 菜鸟教程
Python 100例
题目:放松一下,算一道简单的题目。
程序分析:无。
以上实例输出结果为:
67
yanice
672***[email protected]
判断情人节:
#!/usr/bin/python # -*- coding: UTF-8 -*- import time if __name__=='__main__': date=time.strftime('%m-%d',time.localtime()) if date=='02-14': print '情人节是时候给你女朋友买支玫瑰花了!!' else: print '这时候你不要忘记发个红包!!' print '哈哈,这是一个测试题!!'
取消