我正在尝试使用 os 模块验证作为用户输入接收的目录是否存在
这就是我接受输入的方式:
directory = input("Hi ! \n please type a directory, thanks !")
这个想法是我想确保用户将输入一个现有的目录而不是别的
python validation input python-3.x python-os
input ×1
python ×1
python-3.x ×1
python-os ×1
validation ×1