Re: Re: Re: Untitled

From Scorching Motmot, 2 Months ago, written in Plain Text, viewed 105 times. This paste is a reply to Re: Re: Untitled from Beefy Teal - view diff
URL http://codebin.org/view/63c83842 Embed
Download Paste or View Raw
  1. right_lines = 0 #Счетчик правильных строк
  2. wrong_lines = 0 # Счетчик строк с ошибками
  3. total_position = 0 #Счетчик позиций
  4. try:
  5.     for row in position:
  6.         count_lines += 1
  7.         level = int(row[1])#в этой переменной сохраните позицию в выдаче
  8.         total_position += level#сложите все позиции в этой переменной
  9. except:
  10.     for row in position:
  11.         wrong_lines +=1
  12.         row[1] = row[1].replace('+','')
  13.         row[1] = row[1].replace('- ','')
  14.         row[1] = row[1].replace(' ','')
  15.         row[1] = row[1].replace('Error','')
  16.         level = int(row[1])
  17.         total_position += level
  18.  
  19. print(right_lines, wrong_lines, total_position)

Reply to "Re: Re: Re: Untitled"

Here you can reply to the paste above