Thursday, November 27, 2014

$ python3 if .py Please enter an integer: - 1 Negative changed to zero $ python3 if .py Please enter


>>> import time >>> i = 0 >>> while 1 : ... i += 1 ... print (i) ... time.sleep( 3 ) ... 1 2 3 ^ CTraceback (most recent call last): File " <stdin> " , line 4, in <module> KeyboardInterrupt >>>
$ python3 if .py Please enter an integer: - 1 Negative changed to zero $ python3 if .py Please enter an integer: 0 Zero $ python3 if .py Please enter an integer: 1 Single $ python3 if .py Please asseenontv canada enter an integer: 2 More
博客园首页 博问 新闻 闪存 程序员招聘 知识库


No comments:

Post a Comment