我使用一个自定义类来存储有关在基于正则表达式的目录中找到的文件的信息,并且我需要从一个方法返回这些文件列表。下面是它当前工作方式的一些伪代码://propertes of the file here, such as regex name, source folder anddirectory that matches regex) new filelist}
但是如果这是不受欢迎的,你怎么处理多个链式方法调用呢?结尾处的paren应该在新行上吗?ShortName.objects.distinct().filter().values_list('value', flat=True如何在不引用中间返回值的情况下在多行中编写它们?ShortName.objects.distinct(
).filter().values() # l