认证高级PHP讲师
PEP0202 List Recursion: https://www.python.org/dev/pe...
Explain a little bit:
result is a container containing tuples
Each element in the container contains two values, the first represents the status True/False, and the second value is a dict
If the status in the element is True, take the path value in the dict
Broken it apart to write:
for ok, x in results: if ok: print(x['path'])
In fact, it’s just an abbreviation. Its main function is to make the code simple and beautiful, so don’t worry too much.
PEP0202 List Recursion: https://www.python.org/dev/pe...
Explain a little bit:
result is a container containing tuples
Each element in the container contains two values, the first represents the status True/False, and the second value is a dict
If the status in the element is True, take the path value in the dict
Broken it apart to write:
In fact, it’s just an abbreviation. Its main function is to make the code simple and beautiful, so don’t worry too much.