python 显示模块_python自建模块显示说明与详情

1 >>>help(getpass)2 Help on module getpass:3

4 NAME5 getpass - Utilities to get a password and/or the current user name.6

7 FILE8 /usr/lib64/python2.7/getpass.py9

10 DESCRIPTION11 getpass(prompt[, stream]) - Prompt fora password, with echo turned off.12 getuser() - Get the user name fromthe environment or password database.13

14 GetPassWarning - This UserWarning isissued when getpass() cannot prevent15 echoing of the password contents whilereading.16

17 On Windows, the msvcrt module will be used.18 On the Mac EasyDialogs.AskPassword is used, ifavailable.19

20 CLASSES21 exceptions.UserWarning(exceptions.Warning)22 GetPassWarning23

24 classGetPassWarning(exceptions.UserWarning)25 |Method resolution order:26 |GetPassWarning27 |exceptions.UserWarning28 |exceptions.Warning29 |exceptions.Exception30 |exceptions.BaseException31 | __builtin__.object

32 |

33 |Data descriptors defined here:34 |

35 |__weakref__36 | list of weak references to the object (ifdefined)37 |

38 | ----------------------------------------------------------------------

39 | Methods inherited fromexceptions.UserWarning:40 |

41 |__init__(...)42 | x.__init__(...) initializes x; see help(type(x)) forsignature43 |

44 | ----------------------------------------------------------------------

45 | Data and other attributes inherited fromexceptions.UserWarning:46 |

47 | __new__ =

48 | T.__new__(S, ...) -> a new objectwith type S, a subtype of T49 |

50 | ----------------------------------------------------------------------

51 | Methods inherited fromexceptions.BaseException:52 |

53 |__delattr__(...)54 | x.__delattr__('name') <==>del x.name55 |

56 |__getattribute__(...)57 | x.__getattribute__('name') <==>x.name58 |

59 |__getitem__(...)60 | x.__getitem__(y) <==>x[y]61 |

62 |__getslice__(...)63 | x.__getslice__(i, j) <==>x[i:j]64 |

65 | Use of negative indices isnot supported.66 |

67 |__reduce__(...)68 |

69 |__repr__(...)70 | x.__repr__() <==>repr(x)71 |

72 |__setattr__(...)73 | x.__setattr__('name', value) <==> x.name =value74 |

75 |__setstate__(...)76 |

77 |__str__(...)78 | x.__str__() <==>str(x)79 |

80 |__unicode__(...)81 |

82 | ----------------------------------------------------------------------

83 | Data descriptors inherited fromexceptions.BaseException:84 |

85 |__dict__86 |

87 |args88 |

89 |message90

91 FUNCTIONS92 getpass = unix_getpass(prompt='Password:', stream=None)93 Prompt fora password, with echo turned off.94

95 Args:96 prompt: Written on stream to ask for the input. Default: 'Password:'

97 stream: A writable file objectto display the prompt. Defaults to98 the tty. If no tty isavailable defaults to sys.stderr.99 Returns:100 The seKr3t input.101 Raises:102 EOFError: If our input tty or stdin was closed.103 GetPassWarning: When we were unable to turn echo off on the input.104

105 Always restores terminal settings before returning.106

107 getuser()108 Get the username fromthe environment or password database.109

110 First tryvarious environment variables, then the password111 database. This works on Windows as long as USERNAME is set.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值