@@ -0,0 +1,12 @@
|
||||
from frozendict import frozendict
|
||||
|
||||
config = frozendict(host="localhost", port=8080)
|
||||
print(config["host"])
|
||||
|
||||
|
||||
permissions = {
|
||||
frozendict(role="admin"): ["read", "write", "delete"],
|
||||
frozendict(role="viewer"): ["read"],
|
||||
}
|
||||
|
||||
print(permissions[frozendict(role="admin")])
|
||||
@@ -0,0 +1,3 @@
|
||||
test = ["la", "li", "lu"]
|
||||
if "lu" in test:
|
||||
print("Ja lu ist vorhanden")
|
||||
Reference in New Issue
Block a user