eg:ex1.py#!/usr/bin/envpython#_*_coding=utf-8_*_importgetpassname=raw_input(‘pleaseinputyourusername:‘)pwd=getpass.getpass(‘inputyourpassword:‘)print‘thenameis:‘,nameprint‘thepasswordis:‘,pwd执行结果:[root@localhost~]#pythonex1.pypleaseinputyourusername:h..
分类:
编程语言 时间:
2017-03-09 01:39:20
阅读次数:
190