This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A B | |
b_kf B表的外键 is_admin bool | |
age int | |
""" | |
qs = A.objects.filter(age__gte=13).filter(b_fk__isnull=False).filter(b_fk__is_admin=True) #空的queryset | |
qs = A.objects.filter(age__gte=13).exclude(b_fk__isnull=True).filter(b_fk__is_admin=True) #查到了正确的queryset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
ori = """{'java.class.version': '60.0', | |
'java.home': '/usr/lib/jvm/java-16-openjdk', | |
'java.runtime.name': 'OpenJDK Runtime Environment', | |
'java.runtime.version': '16.0.2+7', | |
'java.specification.name': 'Java Platform API Specification', | |
'java.specification.vendor': 'Oracle Corporation', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
ori = """{'java.class.version': '60.0', | |
'java.home': '/usr/lib/jvm/java-16-openjdk', | |
'java.runtime.name': 'OpenJDK Runtime Environment', | |
'java.runtime.version': '16.0.2+7', | |
'java.specification.name': 'Java Platform API Specification', | |
'java.specification.vendor': 'Oracle Corporation', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
ori = """{'java.class.version': '60.0', | |
'java.home': '/usr/lib/jvm/java-16-openjdk', | |
'java.runtime.name': 'OpenJDK Runtime Environment', | |
'java.runtime.version': '16.0.2+7', | |
'java.specification.name': 'Java Platform API Specification', | |
'java.specification.vendor': 'Oracle Corporation', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: abtesthash | |
enabled: "true" | |
name: abtesthash | |
namespace: default | |
spec: | |
minReadySeconds: 5 |