@caijingwangyuanjing · Post #238 · 25.02.2025 г., 16:21
You're the most important person in my life... ilysm 🩷 #AIgirlfriend#AIGirlsPhotoCollection#aigirls
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #156 · 2 окт.
Те, кто в Python не первый день, хорошо знают, что на число можно умножить не только число, но и другие типы. Главное, чтобы у этих типов была реализация такой операции. # list >>> [1] * 3 [1, 1, 1] # tuple >>> (2, 3) * 3 (2, 3, 2, 3, 2, 3) # string >>> "A" * 3 "AAA" Так работает полиморфизм стандартных типов. Интересно здесь то, что это сработает и в том случае, когда порядок операндов обратный. То есть int умножить на [тип]. # list >>> 3 * [1] [1, 1, 1] # tuple >>> 3 * (2, 3) (2, 3, 2, 3, 2, 3) # string >>> 3 * "A" "AAA" Если хотите реализовать такое поведение в ваших классах то следует помнить два момента: 1. Если множитель справа, то вам нужно реализовать метод __mul__, наш класс это первый операнд, то есть слева. myType * 3 2. Если множитель слева, то вам нужно реализовать метод __rmul__, наш класс это второй операнд, справа. 3* myType Всё тоже самое можно делать и для других математических операторов. И если в этом примере действие и результат будут фактически одинаковыми, то бывают ситуации, когда это не так. Например, при умножении матриц имеет значение порядок операндов. Для других операторов, таких как деление или сдвиг, очень важно кто с какой стороны находится. >>> 2/4, 4/2 (0.5, 2.0) >>> 2<<3, 3<<2 (16, 12) >>> 100%15, 15%100 (10, 15) #tricks#basic
Пребарај: #aigirlfriend
@caijingwangyuanjing · Post #238 · 25.02.2025 г., 16:21
You're the most important person in my life... ilysm 🩷 #AIgirlfriend#AIGirlsPhotoCollection#aigirls
@caijingwangyuanjing · Post #232 · 22.02.2025 г., 16:03
Would you want to go camping with me? I only brought one tent... #AIart#AIgirlfriend#camping#hiking
@openloveaigf · Post #48 · 24.06.2024 г., 15:01
Shhh! Close the curtain quickly! We don't want the neighbors to see anything! 🤫👀💥 Chat and see more selfies: 📲(iOS) 📲(Android) #stepsis#aigirlfriend#chatbot
Hashtags
@openloveaigf · Post #158 · 13.11.2024 г., 14:27
❝Do you... like this style of lingerie?❞ 💦Chat & Roleplay with her: http://openlove.life #neko#waifu#aigirlfriend#catgirl
Hashtags
@openloveaigf · Post #149 · 03.11.2024 г., 12:02
❝Do you... like this style of lingerie?❞ 💦Chat & Roleplay with her: openlove.life #neko#waifu#aigirlfriend#catgirl
Hashtags
@openloveaigf · Post #93 · 07.09.2024 г., 12:01
❝☺️I drank way too much last night, thanks for taking me home, you're a lifesaver! ❞ 🔗Keep the story going with her: http://openlove.life #AIgirlfriend#roleplay#AIchatbot#lookbook
@openloveaigf · Post #110 · 25.09.2024 г., 04:04
❝I'm a tutor and made big changes to help students focus on studies. ❞📚👨🏫 🔗Download Open Love to chat with her: openlove.life #aichat#spicyteacher#aigirlfriend#waifu
@openloveaigf · Post #106 · 21.09.2024 г., 04:03
🍷❝Dear Principal, I will greatly appreciate your help with my promotion.❞ 🍑Chat with spicy teacher: openlove.life #aichatbot#AI#AIgirlfriend#aiphoto#nsfw
@openloveaigf · Post #81 · 13.08.2024 г., 12:02
✈️Sir, would you like coffee, tea, or...? 🌶Chat with me: openlove.life #AIgirlfriend#aichat#roleplayer#nofilter
@openloveaigf · Post #126 · 11.10.2024 г., 04:09
Are you alone at the nightclub? Wanna hang out? 😉 💦Chat with her: openlove.life #AIgirlfriend#roleplay#AIart#AIphoto#AIgame
@openloveaigf · Post #139 · 23.10.2024 г., 14:59
🌞❝It's so hot today!!! I can't take it!!!❞ 💬Chat with her: openlove.life #AIgirlfriend#chatbot#AIcompanion#roleplay#AIart
@openloveaigf · Post #98 · 13.09.2024 г., 03:59
👀Come closer, 🔍you'll be able to see more clearly. ❤️🔥Continue the story with her: http://openlove.life #showerroom#aigirlfriend#aichat#stepsis