To filter the data?

SeVlad
Site user since 03.11.2008
Offline
1527
#11
Sly32:
Pancake well why just srach?

Because you're here just for this, is not it?

Sly32:
Syda only pokvakat come, certainly not for knowledge. Neighing of fools) is currently the swamp), I - for the same purpose for a long time here)
Делаю хорошие сайты хорошим людям. Предпочтение коммерческим направлениям. Топики помощи с ⓌordPress (https://searchengines.guru/ru/forum/1032910 ) и основы безопасности сайтов ( https://searchengines.guru/ru/forum/774117 ). *** Помощь\консультации в топиках форума - БЕСПЛАТНО. Платные услуги ( https://wp.me/P3YHjQ-3 ) - с бюджетом от 150$ ***
danforth
Site user since 18.12.2015
Offline
153
#12
Sly32:
the language code will be shorter

Miltorg bitten?

This will be faster than in any language.


grep -vP "media_category ':' (promo | xxx) '" file.txt
Junior Web Developer
S
Site user since 30.09.2016
Offline
469
#13
Sly32:
Pancake well why just srach?

Because it is your favorite activity on Sorche.

This topic immediately started to send

Sly32:
If anyone has bothered to put plugins

And then make a clarification

Sly32:
Well, compare the code will be shorter than the language)
But in fact, in short - is a Miltorgu his "Olympic Games". To program more importantly, how it is optimal for the server, and the brevity of the code here is not always the first place.
Отпилю лишнее, прикручу нужное, выправлю кривое. Вытравлю вредителей.
VV
Site user since 19.12.2009
Offline
111
#14

I still do not understand. This is a local humor?

vk.cc/7mGAMH
SeVlad
Site user since 03.11.2008
Offline
1527
#15

What am I "solved"? I suggest you to once, really something to really make the forum to help the user, to teach him to "correct". You, remember, put it to his purpose. So here's a very appropriate occasion.

---------- Posted 13.06.2020 at 13:03 ----------

veni_vidi_vivi:
This is a local humor?

This is the next round of the regular meryaniya pipettes :)

Sly32
Site user since 29.03.2012
Offline
252
#16
timo-71:
m = [n for n in m if isinstance (n, dict) and n.get ( 'media_category') not in [ 'xxx', 'promo']]

Shoot, I'm not like a decision immediately on the python)))

Well, almost pitonik Style, Guido approves) true pitoisty be remembered about filters and lambda)

The Lord's answer from the world of php?

S
Site user since 30.09.2016
Offline
469
#17
veni_vidi_vivi:
I still do not understand. This is a local humor?

A hrenal you doing here 10 years from now? Or ACC recently bought? ;)

Sly32
Site user since 29.03.2012
Offline
252
#18
Danforth:
grep -vP "media_category ':' (promo | xxx) '" file.txt

I wrote above - I come iterated object from the database in beke, grep's not quite what it should be

how it will look on the first, better give an example

---------- Posted 13.06.2020 at 13:10 ----------

Sitealert:
Because it is your favorite activity on Sorche.

Listen, I tried to offer vyhi more interesting than just srach and meryanie. script - directly related to the construction of the Web, will be used for a good resource, it seemed to me it would be more fun than poking a regular in Arbneta)))

---------- Posted 13.06.2020 at 13:11 ----------

Sitealert:
Posted by Sly32 If anyone bothered to put the plug-ins

Yes - proposed distraction and strain the brain - what's wrong?

danforth
Site user since 18.12.2015
Offline
153
#19
Sly32:
I wrote above - I come iterated object from the database in beke, grep's not quite what nadokak it will look at the first, better give an example

And, the base is not able to write to stdout? level task is not something that June, and Juneau.

Sly32
Site user since 29.03.2012
Offline
252
#20
Danforth:
And, the base is not able to write to stdout? level task is not something that June, and Juneau.

and the meaning? Of course, the task of unpretentious, not for seniors)

Well, it happened that a lot of extra activities - get object from the database - to create object output grepnut it, while converting the format, then return to a thread of execution, and to give in to form a responsum json / html ...

For your option, thank you. If bringest another example of the first - will be quite cool

---------- Posted 13.06.2020 at 13:33 ----------

Sitealert, SeVlad, I would like to see your decision) is possible in the form of plug-in)

Well, seriously, let's just stretch our brains, without sracha)

To post a new comment, please log in or register