python 代码片段13

#coding=utf-8

# 条件转化

data=raw_input("enter 'y' or 'n'")
if data[0]=='y':
print "you typed y."
elif data[0]=='n':
print "you typed n."
else:
print 'invalid key entered!' # 循环
i=0
while i<5:
print i
i+=1
上一篇:(转)CWnd与HWND的区别与转换


下一篇:hdu 3487