欢迎使用CSDN-markdown编辑器

#!/usr/bin/env python

coding:utf-8

print” 乘法口诀表“
for i in range(1,10):
for j in range(1,i+1):
print “{}*{}={}”.format(i,j,i*j)
print””
~

#!/usr/bin/env python

coding:utf-8

cnt=1
for i in range(1,4):
name = raw_input(“username: “)
passwd = raw_input(“password: “)
if name == “root”:
if passwd == “westos”:
print “login ok”
cnt=0
else:
print “password is no ok”
else:
print “user is not exist”
if cnt == 0 or i == 3:
if i == 3:
print “count is bigger than 3”
exit()

~

欢迎使用CSDN-markdown编辑器_第1张图片

你可能感兴趣的:(欢迎使用CSDN-markdown编辑器)