python - 从用户那里获取输入,然后在 Python 的文件夹中搜索它
问题描述
我正在做一个 Python 项目,这将帮助我父亲更好地组织他的工作。我想从用户那里得到一个输入,然后在我的 Python 文件所在的同一文件夹中的文件夹中搜索它。例如,伪代码
searchfile = get_input
search(searchfile)
if is_in_the_same_folder{
print searchfile
}
else{
print "This file cannot be found"
}
谢谢你。