MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / __base_input

Method __base_input

client/util/smartinput.py:21–32  ·  view source on GitHub ↗

基础的输入,带密码掩码功能 :param prompt: 提示信息 :param is_password: 是否是密码输入 :return: 输入的数据

(self, prompt, is_password)

Source from the content-addressed store, hash-verified

19
20class SmartInput(object):
21 def __base_input(self, prompt, is_password):
22 """
23 基础的输入,带密码掩码功能
24 :param prompt: 提示信息
25 :param is_password: 是否是密码输入
26 :return: 输入的数据
27 """
28 if is_password:
29 input_data = getpass.getpass(prompt)
30 else:
31 input_data = input(prompt)
32 return input_data
33
34 def __error_retry_input(self, input_data, check_func, retry_prompt, retry_times, is_password=False):
35 """

Callers 2

__error_retry_inputMethod · 0.95
inputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected