@arch_shovel · Post #383 · 12.06.2022 г., 15:15
Rossana Orlandi at Fuorisalone in 10 images. Location: Milan. Photo Marco Menghi #rossanaorlandi#designweek#milandesignweek#arch_shovel
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #309 · 2 фев.
Метод строки split() разделяет строку на несколько строк по указанному символу >>> "a_b_c".split('_') ['a', 'b', 'c'] Можно указать максимальное количество разделений >>> "a_b_c".split('_', 1) ['a', 'b_c'] Или резать с другой стороны с помощью rsplit() (right split) >>> "a_b_c".rsplit('_', 1) ['a_b', 'c'] А что будет если оставить аргументы пустыми? >>> "a_b_c".split() ['a_b_c'] Получаем список с одним элементом, потому что по умолчанию используется пробельный символ. >>> "a b c".split() ['a', 'b', 'c'] То есть это равнозначно такому вызову? >>> "a b c".split(" ") ['a', 'b', 'c'] Кажется да, но нет! Давайте попробуем добавить пробелов между буквами >>> "a b c".split(" ") ['a', '', '', 'b', '', '', 'c'] И вот картина уже не так предсказуема 😕 А вот что будет по умолчанию >>> "a b c".split() ['a', 'b', 'c'] Всё снова красиво! 🤩 По умолчанию в качестве разделителя используется любой пробельный символ, будь то табуляция или новая строка. Включая несколько таких символов идущих подряд. А также игнорируются пробельные символы по краям строки. >>> "a\t b\n c ".split() ['a', 'b', 'c'] Аналогичный способ можно собрать с помощью регулярного выражения. Но пробелы по краям строки придется обрабатывать дополнительно. >>> import re >>> re.split(r"\s+", ' a b c '.strip()) ['a', 'b', 'c'] Здесь тоже можно указать количество разделений >>> re.split(r"\s+", 'a b c', 1) ['a', 'b c'] А что если мы хотим написать красиво, то есть split() без аргументов, но при этом указать количество разделений? В этом случае первым аргументом передаём None >>> "a\n b c".split(None, 1) ['a', 'b c'] Данный метод не учитывает строки с пробелами, взятые в кавычки 'a "b c" '.split() ['a', '"b', 'c"'] Но для таких случаев есть другие способы. #tricks#basic
Пребарај: #designweek
@arch_shovel · Post #383 · 12.06.2022 г., 15:15
Rossana Orlandi at Fuorisalone in 10 images. Location: Milan. Photo Marco Menghi #rossanaorlandi#designweek#milandesignweek#arch_shovel
@arch_shovel · Post #838 · 24.11.2022 г., 17:21
8 Architectural Installations at Dubai Design Week 2022 This year’s program is focused on designing a sustainable future. To promote this, Dubai Design Week has invited international and regional architects and designers to create installations that demonstrate creative design thinking, to introduce innovative materials, and spark conversations about the ways in which design can have a positive impact on the environment. 1. Once Upon a Forest / OBMI 2. How Much Does Your Debris Weigh? / Quartz Architects 3. IOTA / Karim Tamerji and Elias El Hage 4. Grounded in Hope / Grounded Design 5. Seven Cypresses (Seven SARV) / Banafsheh Hemmati 6. Suhail Design / Reem Al Bustani 7. KIN / FADAA 8. Al Gargoor / Sara Alrayyes #arch_shovel#designweek#dubai#architecture#installation
@arch_shovel · Post #374 · 12.06.2022 г., 11:05
Nine design pieces from the Salone del Mobile 2022. 1. Biomorphic, The value of research for De Castelli. 2. Ixa, Foster+Partners for Artemide. 3. Loop, India Mahdavi for Gebrüder Thonet Vienna. 4. Riace, Ronan & Erwan Bouroullec for Magis. 5. Design Re-Generation. Università Statale di Milano, Via Festa del Perdono 7. 6. La Manufacture. Museo Poldi Pezzoli, Via Manzoni 12, Milan. 7. Tom Dixon, Twenty. Palazzo Serbelloni, corso Venezia 14. 8. Montbook, Giulio Iacchetti. Temporary Shop, via Palermo 18, Milan. 9. Again from the Earth’s Foundation. Fondazione Giangiacomo Feltrinelli, Via Pasubio 5, Milan. Photo Marco Menghi More on domusweb.it #designweek#milandesignweek#salonedelmobile#arch_shovel#milano
@arch_shovel · Post #393 · 12.06.2022 г., 18:20
The most Instagrammable installation of Milano Design Week 2022. During Milan design week, designer Daniel Arsham teamed with bathroom and kitchen manufacturer Kohler to create a walking interpretation of a "sink" at a Baroque mansion. The piece, dubbed Divided Layers, is made up of seven stacked white panels that form a tunnel that is entered through a platform flanked by a water feature. #milandesignweek#milan#designweek#danielarsham#arch_shovel