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()



python脚本记录,布布扣,bubuko.com

python脚本记录

上一篇:Python标准库04 文件管理 (部分os包,shutil包)


下一篇:Python标准库08 多线程与同步 (threading包)