Differences between revisions 4 and 5
Revision 4 as of 2006-06-11 03:30:01
Size: 0
Comment: orphaned page - question moved to PythonQuestions
Revision 5 as of 2006-12-08 11:13:56
Size: 1184
Editor: 202
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe How to.../AccessTomcatFromPython here.
How to store the variables, "HSstatsValue[i]" below?? The syntax is wrong, what is the actual syntax to store the variable or value???
            for i in range(countTill):
                #print "cntTrack=", cntTrack
                s1 = re.compile(r"\d+").findall(lines[cntTrack+i+1])
                #print "s1=", s1
                #print "lines[cntTrack+i+1]=", cntTrack+i+1
                #oPutFile.write(stats[i])
                #print stats[i],
                #oPutFile.write('\t')
                if len(s1) == 1:
                    #print s1[0]+ '\n'
                    HSstatsValue[i]=s1[0]
                    #print "HSstatsValue[i]=", HSstatsValue[i]
                    oPutFile.write(s1[0])
                    oPutFile.write('\t')
                elif len(s1) > 1:
                    for x in range(len(s1)):
                        zum = zum + int(s1[x])
                        HSstatsValue[i]=s1[0]

                    oPutFile.write(str(zum))
                    #print zum
                    #oPutFile.write('\t')
                    oPutFile.write('\t')
                zum = 0

Describe How to.../AccessTomcatFromPython here. How to store the variables, "HSstatsValue[i]" below?? The syntax is wrong, what is the actual syntax to store the variable or value???

  • for i in range(countTill):
    • #print "cntTrack=", cntTrack s1 = re.compile(r"\d+").findall(lines[cntTrack+i+1]) #print "s1=", s1 #print "lines[cntTrack+i+1]=", cntTrack+i+1 #oPutFile.write(stats[i]) #print stats[i], #oPutFile.write('\t') if len(s1) == 1:
      • #print s1[0]+ '\n' HSstatsValue[i]=s1[0] #print "HSstatsValue[i]=", HSstatsValue[i] oPutFile.write(s1[0]) oPutFile.write('\t')

      elif len(s1) > 1:

      • for x in range(len(s1)):
        • zum = zum + int(s1[x]) HSstatsValue[i]=s1[0]
        oPutFile.write(str(zum)) #print zum #oPutFile.write('\t') oPutFile.write('\t')
      zum = 0

How to.../AccessTomcatFromPython (last edited 2008-11-15 14:00:38 by localhost)

Unable to edit the page? See the FrontPage for instructions.