samedi 28 octobre 2017

Python - if name shows up in a specific position in the directory path

I am trying to write a if statement for a directory path. For example,

names = "Mary", "Joe", "John"
path = "C:/a/b/c/d/e"

If names shows up in specifically position d, then do sth. What is the syntax that I can use? Thanks

Aucun commentaire:

Enregistrer un commentaire