20
Comment supprimer la partie gauche d'une chaîne?
J'ai un code python simple qui recherche dans les fichiers une chaîne, par exemple path=c:\path, où la c:\pathpartie peut varier. Le code actuel est: def find_path(i_file): lines = open(i_file).readlines() for line in lines: if line.startswith("Path="): return # what to do here in order to get line content after "Path=" ? …