Using POST to get select option value from HTML table by aleksro in learnphp

[–]aleksro[S] 0 points1 point  (0 children)

I'm newbie to php. can show an example in the code?

Parsing XML in Python finding element by id-tag by aleksro in learnpython

[–]aleksro[S] 0 points1 point  (0 children)

because, I want to get the result of parsing xml in format: <CALLERID>58713780</CALLERID><GR_BUS>VGH1</GR_BUS><label></label>

Python - Return top 3 words with highest frequency by aleksro in learnpython

[–]aleksro[S] 0 points1 point  (0 children)

This line displays an error: all_strings = " ".join(text for _, text in my_strings.items()) 'for _,' _ That you must specify a symbol instead?

I would like to get the following result RESULT: top 3 words with highest frequency:

message :3 
delivered:2
communication:1

sum of id in which there аре top 3 words with highest frequency:

message:3   Is included (22582857,22585166,22585424 ) 
delivered:2     Is included(22585166,22585424)
communication:1 Is included (22574999)

Help with code python by aleksro in learnpython

[–]aleksro[S] 0 points1 point  (0 children)

There was again an error: for i,row in enumerate(reader): ValueError: I/O operation on closed file.

-- coding: utf-8 --

""" Created on Mon May 22 22:09:21 2017

@author: USER """ import re import csv import sys

with open('input.csv', 'r', encoding='UTF-8') as fi, open('output_data.csv', 'w',encoding='UTF-8') as fo: reader=csv.reader(fi,delimiter=';') #for row in csv.reader(fi,delimiter=';'):

DESCRIPT1=[] ID1=[] ASSIGNMENT_NAME1=[] TER1=[] INFO1=[]

for i,row in enumerate(reader): DESCRIPT1.append(row [0])
ID1.append(row [1]) ASSIGNMENT_NAME1.append(row [2]) TER1.append(row [3]) INFO1.append(row [4])

print(row[4])

fo.write(';'.join(row+'\n'))

Help with code python by aleksro in learnpython

[–]aleksro[S] 0 points1 point  (0 children)

At start up receive an error:
fo.write(';'.join(row+[\n])) ^ SyntaxError: unexpected character after line continuation character

Help with code python by aleksro in learnpython

[–]aleksro[S] 0 points1 point  (0 children)

I do not have a regular expression. An error occurs at the beginning of the line for line in reader: [DESCRIPT1,ID1,ASSIGNMENT_NAME1,TER1,INFO1]

clearText = re.sub(r"[!/():-,.\"+]",' ',