NeteaseMusicLyricDownloader/modules/utils/raw_input.py
2023-04-04 19:58:02 +08:00

11 lines
399 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""该模块提供几个自定义处理输入函数"""
def rinput(string: str = ''):
"""当调用该函数时同input()一样但是返回一个去除首位空格并全部小写的str"""
return input(string).strip().lower()
def cinput(string: str = ''):
"""当调用该函数时同input()一样但是返回一个去除首尾空格的str"""
return input(string).strip()