-1
我有一個循環,但它的遞增。遞歸循環的語法是什麼?Python遞減循環
for item2 in textPad.get(itemindex,END):
tagnames = textPad.tag_names(str(curline)+"."+str(curchar))
if not "phpsingqoute" in tagnames and not "phpdoubqoute" in tagnames and not "phpcomment" in tagnames:
if item2 == theopenandclose[1]:
opencount -= 1
if opencount == 0:
textPad.tag_add(tagname,str(curline)+"."+str(curchar))
textPad.tag_config(tagname,foreground="white",background="#000")
break
if item2 == theopenandclose[0]:
opencount += 1
if re.match(r'\n',item2):
curline += 1
curchar = -1
curchar += 1