@Dogdata · Post #2394 · 14.08.2020 г., 11:08
DogData community🐾 Support us and vote for DogData🙏🐾 Please tag 👇 @FaceBook4Dog#ethbn#bone#dogdata https://twitter.com/gate_io/status/1293863802019119105?s=09 👆👆👆
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #418 · 9 мар.
Оператор pipe позволяет писать более компактный код, реализуя логику объединения данных (Union). Важно помнить, что его поведение зависит от контекста. Побитовые операции (логическое OR) result = 5 | 3 # 5 (0101) | 3 (0011) = 7 (0111) Самое главное - не путать с оператором or, это другое! Объединение множеств set_a = {1, 2, 3} set_b = {3, 4, 5} set_c = set_a | set_b # {1, 2, 3, 4, 5} set_c |= {5, 6} # {1, 2, 3, 4, 5, 6} Слияние словарей dict_1 = {"a": 1, "b": 2} dict_2 = {"b": 3, "c": 4} merged = dict_1 | dict_2 # {'a': 1, 'b': 3, 'c': 4} merged |= {"d": 5} # {'a': 1, 'b': 3, 'c': 4, 'd': 5} Аннотации типов, заменяет Union def process_data(value: int | str) -> None: print(value) Допустимо использовать в isinstance или issubclass isinstance(3, int | float) # True Паттерн-матчинг status_code = 404 match status_code: case 200 | 201 | 204: print("OK") case 400 | 404 | 500: print("ERROR") Для использования в своих классах требуется переопределить метод __or__ Так же нашел библиотеку pipe которая добавляет еще много возможностей. Рекомендую ознакомиться ;) #basic
Hashtags
Пребарај: #ethbn
@Dogdata · Post #2394 · 14.08.2020 г., 11:08
DogData community🐾 Support us and vote for DogData🙏🐾 Please tag 👇 @FaceBook4Dog#ethbn#bone#dogdata https://twitter.com/gate_io/status/1293863802019119105?s=09 👆👆👆
@Dogdata · Post #2392 · 13.08.2020 г., 19:17
DogData community🐾 Everyone should be interested in getting this. Let's show that we are big, let's show that our community is huge ❗️❗️ Support us and vote for DogData🙏🐾 Please tag 👇 @FaceBook4Dog#ethbn#bone#dogdata https://twitter.com/gate_io/status/1293863802019119105?s=09 👆👆👆
@Dogdata · Post #2434 · 19.08.2020 г., 05:32
This is the first of the articles on DogData👏👏 #ETHBN#dogdata#publish0x 👉https://www.publish0x.com/dogdata/mydogdata-xnlwvqz Please rate this article👍🐾
Hashtags
@Dogdata · Post #2658 · 18.10.2020 г., 10:28
🌹 Another Dog Cared for 😍😘 👉 Another BoneDrop 🦴= 💰👈 👉 Another Street Dog Feeding Good Job 👈👈👏👏👏 From DogData Https://MyDogData.com🐾 https://t.me/DogDataICO👈 👉 Feed a Street Dog Table food Today ‼️‼️‼️‼️ 👉 Post 20 seconds video 🎥 into DogData Global Group 👉 Mention DogData BoneDrop 👉🤩 Get Paid and Trade now Today 👉🤩 1000 ETHBN 🤩👈 #DogData#Dogs#Help#Care#Feeding#ETHBN#Reward
@Dogdata · Post #2490 · 08.09.2020 г., 22:30
🌹 Another Dog Cared for 😍😘 👉 Another BoneDrop 🦴= 💰👈 👉 Another Street Dog Feeding Good Job 👈👈👏👏👏 From DogData Https://MyDogData.com🐾 https://t.me/DogDataICO👈 👉 Feed a Street Dog Table food Today ‼️‼️‼️‼️ 👉 Post 20 seconds video 🎥 into DogData Global Group 👉 Mention DogData BoneDrop 👉🤩 Get Paid and Trade now Today 👉🤩 500 ETHBN 🤩👈 #DogData#Dogs#Help#Care#Feeding#ETHBN#Reward
@Dogdata · Post #2484 · 06.09.2020 г., 12:43
🌹 Another Dog Cared for 😍😘 👉 Another BoneDrop 🦴= 💰👈 👉 Another Street Dog Feeding Good Job 👈👈👏👏👏 From DogData Https://MyDogData.com🐾 https://t.me/DogDataICO👈 👉 Feed a Street Dog Table food Today ‼️‼️‼️‼️ 👉 Post 20 seconds video 🎥 into DogData Global Group 👉 Mention DogData BoneDrop 👉🤩 Get Paid and Trade now Today 👉🤩 500 ETHBN 🤩👈 #DogData#Dogs#Help#Care#Feeding#ETHBN#Reward
@dogdata · Post #3423 · 21.03.2021 г., 03:10
👉 Another DogData BoneDrop 🦴= 💰👈 + 😊🐾 🌹 Another Cared for Dog 😘 👉 Another Street Dog Feeding )😍🏆 Good Job 👈👈👏👏👏 Https://MyDogData.com BoneDrop video Reward 👈 👉 5000 ETHBN ($6 reward ) 👈 https://vm.tiktok.com/ZMeJHgCe3/ https://t.me/joinchat/RQW9brTcQ_czYzk8 #bonedrop#etherbone#dogdata#ethbn#feedstreetdogs#streetdogfeeding#streetdogs#lovedogs
@dogdata · Post #3253 · 11.02.2021 г., 11:16
👉 Another DogData BoneDrop 🦴= 💰👈 + 😊🐾 🌹 Another Cared for Dog 😘 👉 Another Street Dog Feeding )😍🏆 Good Job 👈👈👏👏👏 Https://MyDogData.com BoneDrop video Reward 👈 👉 5000 ETHBN ($6 reward ) 👈 https://vm.tiktok.com/ZMeJHgCe3/ #bonedrop#etherbone#dogdata#ethbn#feedstreetdogs#streetdogfeeding#streetdogs#lovedogs