84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
认证高级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.