Answer the question
In order to leave comments, you need to log in
How to use Cyrillic when creating XML?
I create xml file
$xml_out = new SimpleXMLElement('<xml/>');
$catalog = $xml_out->addChild('Catalog');
$xml = $catalog ->addChild('Category');
$xml->addAttribute("title", $arParent["NAME"]);
.....
$xml_out -> saveXML('property.xml');
Приставки
Answer the question
In order to leave comments, you need to log in
The first link in Google:
https://copist.ru/ru/blog/2014/03/04/simplexml-and...
If you make pix a 3-dimensional numpy array, then instead of computing the 3x3 matrix component by component, you can use slices and get something like:
rgb = np.zeros(3)
for i in range(1, width - 1):
for j in range(1, height - 1):
for k in range(3):
current_matrix = pix[i-1:i+2, j-1:j+2, k]
rgb[k] = draw_effects_functions.change_color_effects(l, current_matrix, matrix_type_dict)
draw.point((i, j), rgb)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question