python脚本记录
#!/usr/bin/env python
i = 0
n = input('please input number:')
while i <= n :
i += 1
print i*'*'
#!/usr/bin/env Python
name = raw_input('please input your name:')
passwd = raw_input('please input your passwd:')
login = [name, passwd]
def li():
if login[0] == 'admin' and login[1] == '123':
print 'login success!'
else:
print 'login again!'
name = raw_input('please input your name:')
passwd = raw_input('please input your passwd:')
li()
相关文章