约 310 字
约 2 分钟
说明:获取输入。
def input(prompt='') -> str: ''' 获取输入 :param prompt: 提示文本 :return: 输入的字符串 '''
示例:
text = input('请输入:') print('输入的是:', text) 运行代码>>> Establishing WebAssembly Runtime. >>> Standby. Powered by Shift.
text = input('请输入:') print('输入的是:', text)
>>> Establishing WebAssembly Runtime.
>>> Standby.
Powered by Shift.
创建于 2025/5/9
更新于 2025/5/11