python练习题

s = ''
while True:
    v1 = input('name:')
    v2 = input('mail:')
    v3 = input('password:')
    template = "{0}\t{1}\t{2}\n"
    v = template.format(v1, v2, v3)
    s = s + v
    print("继续吗?y or q:")
    go = input('>>>')
    sgo = go.lower()
    if sgo == 'q':
        break
    else:
        continue
print(s.expandtabs(20))

 

posted @ 2018-04-27 20:54  cold_skin  阅读(77)  评论(0)    收藏  举报