01 测试总结


版权问题研究。 现在关于测试结果,可以看出:

  • 敏感的标题是审核的关键;
  • 审核背后的人工具有比较大的随意性;

测试程序


如下是自动测试相关的Python 程序。

from head import *
from cdfsub import *titlenotestr = ''fontstr = ''
if len(face) > 0 or len(color) > 0 or len(sizestr) > 0:fontstr = '<font 'if len(face) > 0:   fontstr = fontstr + ' face=%s'%faceif len(color) > 0:  fontstr = fontstr + ' color=%s'%colorif len(sizestr) > 0: fontstr = fontstr + ' size=%s'%sizestrfontstr = fontstr + '>'if len(sys.argv) == 2:if sys.argv[1] == '#':tsppasteclipboard()exit()if sys.argv[1] == 'E':tspsendwindowkey(csdn_title, "v", control=1,noreturn=1)exit()key = tspread()
if key[8] != 0:retflag = 1nbspflag = 1insertstr = fontstr
figurestr = ''if len(sys.argv) == 2:if sys.argv[1] == '<':tspsendwindowkey(csdn_title, "c", control=1)strall = clipboard.paste().split('\n')insertstr = []if len(strall) > 0:for s in strall:startid = s.find('https://')if startid < 0:startid = s.find('http://')if startid >= 0:headstr = s[0:startid]ss = s[startid:].split(' ')urlstr = ss[0]endstr = ' '.join(ss[1:])if urlstr[-1] == '.':urlstr = '<%s>.'%urlstr[:-1]elif urlstr[-1] == '。':urlstr = '<%s>。'%urlstr[:-1]else:urlstr = '<%s>'%urlstrs = headstr + urlstr + endstrinsertstr.append(s)clipboard.copy('\n'.join(insertstr))tspsendwindowkey(csdn_title, "v", control=1, noreturn=1)exit()if len(sys.argv) > 2:if brflag == 0:allstr = ' '.join(sys.argv[2:])else:if brflag == 1:allstr = '<br>'.join(sys.argv[2:])else:allstring = ' '.join(sys.argv[2:])allstr = allstring.replace('|', '<br>')allstr = allstr.replace(',,', '<br>')allstr = allstr.replace(',,', '<br>')allstr = allstr.replace(';,', ';<br>')allstr = allstr.replace('。,', '。<br>')allstr = allstr.replace(';。', ';<br>')allstr = allstr.replace('。;', '。<br>')allstr = allstr.replace('.,', '.<br>')allstr = allstr.replace(';.', ';<br>')allstr = allstr.replace(';,', ';<br>')if allstr[0] == ':':allstr = ':' + allstr[1:]headsharpnum = len(allstr) - len(allstr.lstrip('#'))if headsharpnum > 0:allstr = allstr.lstrip('#')if sharpnum == 1 and sys.argv[1][0] == '#':noteid = 0for id,s in enumerate(sys.argv):if s[0] == '>' or s[0] == '》':noteid = idbreakif noteid > 0:allstr = ' '.join(sys.argv[2:id])titlenotestr = ' '.join(sys.argv[id:])titlenotestr = titlenotestr[1:]if len(titlenotestr) > 0:headlineflag = 0lineflag = 0if sys.argv[2][0] == '-' and sys.argv[2][1:].isdigit():figurestr = '表' + '-'.join(sys.argv[2][1:]) + ' 'allstr = figurestr + ' '.join(sys.argv[3:])if sys.argv[2][-1] == '-' and sys.argv[2][0:-1].isdigit():figurestr = '表' + '-'.join(sys.argv[2][0:-1]) + ' 'allstr = figurestr + ' '.join(sys.argv[3:])if sys.argv[2].isdigit() and rightflag > 0:figurestr = '表' + '-'.join(sys.argv[2]) + ' 'allstr = figurestr + ' '.join(sys.argv[3:])allstr = allstr.replace('-->', '→')allstr = allstr.replace('<--', '←')enddotflag = 0if endmarkflag > 0 and len(headmarkflag) > 0:allstr = allstr + ' ' + headmarkflagif len(allstr) > 0:if allstr[-1] == '\\' or allstr[-1] == '.' or allstr[-1] == '|':tspsendwindowkey(csdn_title, 'c', control=1, noreturn=1)pastestr = clipboard.paste()if len(pastestr) == 0:pastestr = clipboardstr;if allstr[-1] == '\\': allstr = allstr[0:-1]if len(pastestr) > 0:allstr = allstr + pastestrif allstr[-1] == '.':nbspflag = 0allstr = allstr[:-1]endmarkflag = headmarkflagif allstr[0] == 'o':if allstr[1] == 'o':headmarkflag = '○ 'allstr = allstr[2:]else:headmarkflag = '● 'allstr = allstr[1:]if allstr[0] == '.':if allstr[1] == '.':headmarkflag = '□ 'allstr = allstr[2:]else:headmarkflag = '■ 'allstr = allstr[1:]if allstr[0] == '+':if allstr[1] == '+':headmarkflag = '☆ 'allstr = allstr[2:]else:headmarkflag = '★ 'allstr = allstr[1:]if allstr[0] == '-':if allstr[1] == '-':headmarkflag = '△ 'allstr = allstr[2:]else:headmarkflag = '▲ 'allstr = allstr[1:]if allstr[0] == ';':if allstr[1] == ';':headmarkflag = '◇ 'allstr = allstr[2:]else:headmarkflag = '◆ 'allstr = allstr[1:]if allstr[0] == '_':headmarkflag = '→ 'allstr = allstr[1:]if allstr[0] == ':':if allstr[1] == ':':headmarkflag = '※ 'allstr = allstr[2:]endmarkflag = ' 'elif allstr[1] == ':':headmarkflag = '※ 'allstr = allstr[2:]endmarkflag = ' 'else:headmarkflag = '※ 'allstr = allstr[1:]if allstr[0] == ':':if allstr[1] == ':':headmarkflag = '※ 'allstr = allstr[2:]endmarkflag = ' 'else:headmarkflag = '※ 'allstr = allstr[1:]if allstr[0] == '%':headmarkflag = '# 'allstr = allstr[1:]if allstr[0] == '$':headmarkflag = '§ 'allstr = allstr[1:]if allstr[0] == '@':headmarkflag = '◎ 'allstr = allstr[1:]if allstr[0] == '?':headmarkflag = '√ 'allstr = allstr[1:]if endmarkflag != headmarkflag and len(endmarkflag) > 0:endmarkflag = ' ' + headmarkflag.replace(' ', '')else:endmarkflag = ''if allstr[0] == '/':circlenum = allstr.count('/')allstr = allstr[circlenum:]orderstr = '①②③④⑤⑥⑦⑧⑨⑩⑾⑿⒀⒁⒂⒃⒄⒅'if circlenum > 18: circlenum = 18circlestr = orderstr[circlenum-1:circlenum] + ' 'if allstr[0] == '|':circlenum = allstr.count('|')allstr = allstr[circlenum:]orderstr = 'ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ'if circlenum > 12: circlenum = 12circlestr = orderstr[circlenum-1:circlenum] + '.'if allstr[0] == '\\':circlenum = allstr.count('\\')allstr = allstr[circlenum:]orderstr = 'ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ'if circlenum > 10: circlenum = 10circlestr = orderstr[circlenum-1:circlenum] + '.'if allstr[1:3] == '、、' or allstr[1:3] == '\\\\':orderstr = '一二三四五六七八九十'num = int(allstr[0:1])if num == 0: num = 10num -= 1circlestr = orderstr[num] + '、'allstr = allstr[3:]if allstr[2:4] == '、、' or allstr[2:4] == '\\\\':orderstr = '一二三四五六七八九十'num = int(allstr[0:1])num1 = int(allstr[1:2])if num == 1 and num1 == 0:circlestr = "十、"elif num == 1:num1 -= 1circlestr = '十%s、'%orderstr[num1]elif num1 > 0:num -= 1num1 -= 1circlestr = '%s十%s、'%(orderstr[num], orderstr[num1])else:num -= 1circlestr = '%s十、'%(orderstr[num])allstr = allstr[4:]if allstr[1:2] == '\\':circlestr = '%s、'%allstr[0:1]allstr = allstr[2:]if allstr[0] >= '0' and allstr[0] <= '9':if len(allstr) >= 2:if allstr[1] == '|':if allstr[2] == ':':allstr = '(%s)'%allstr[0] + allstr[3:]elif allstr[2] == '|':allstr = '(%s)'%allstr[0] + allstr[3:]elif allstr[2:3] == ':':allstr = '(%s)'%allstr[0] + allstr[3:]else:allstr = '(%s) '%allstr[0] + allstr[2:]elif allstr[1] == ':':allstr = '(%s)'%allstr[0] + allstr[2:]elif len(allstr) > 2:if allstr[1:2] == ':':allstr = '(%s)'%allstr[0] + allstr[2:]elif allstr[1] >= '0' and allstr[1] <= '9':if allstr[2] == '|':if allstr[3] == ':':allstr = '(%s)'%allstr[0:2] + allstr[4:]elif allstr[2] == '|':allstr = '(%s)'%allstr[0:2] + allstr[4:]elif allstr[2:3] == ':':allstr = '(%s)'%allstr[0:2] + allstr[4:]else:allstr = '(%s) '%allstr[0:2] + allstr[3:]elif allstr[2] == ':':allstr = '(%s)'%allstr[0:2] + allstr[3:]elif allstr[2:3] == ':':allstr = '(%s)'%allstr[0:2] + allstr[3:]else:asdim = allstr.split('.')if len(asdim) == 2:if asdim[0].isdigit() and not asdim[1][:1].isdigit():allstr = '.'.join(asdim[0])if len(asdim[1]) > 0:allstr = allstr + ' ' + asdim[1].strip(' ')else:asdim = allstr.split('。')if len(asdim) == 2:if asdim[0].isdigit() and not asdim[1][:1].isdigit():allstr = '.'.join(asdim[0])if len(asdim[1]) > 0:allstr = allstr + ' ' + asdim[1].strip(' ')if allstr[0] == '*':headboldflag = 1if allstr[1] == '*':headboldflag = 2if allstr[2] == '*':headboldflag = 3if allstr[3] == '*':headboldflag = 4allstr = allstr[headboldflag:]if boldflag == 0:if headboldflag > 0 and headlargeflag == 0:allstr = '**%s**'%allstr[0:headboldflag] + allstr[headboldflag:]elif headboldflag > 0 and headlargeflag > 0:if len(sizestr) == 0: ss = '4'else: ss = '5'allstr = '<font size=%s>**%s**</font>'%(ss,allstr[0:headboldflag]) + allstr[headboldflag:]elif headboldflag == 0 and headlargeflag > 0:if len(sizestr) == 0: ss = '4'else: ss = '5'allstr = '<font size=%s>%s</font>'%(ss,allstr[0:headlargeflag]) + allstr[headlargeflag:]else:if headlargeflag > 0:if len(sizestr) == 0: ss = '4'else: ss = '5'allstr = '<font size=%s>%s</font>'%(ss,allstr[0:headlargeflag]) + allstr[headlargeflag:]if sharpnum <= 1 and headnumlineflag > 0 and sharpnum > 0:if color == 'purple':if redarrowflag == 0:allstr = str2headnumline(allstr)else: allstr = str2headnumline(allstr)else: allstr = str2headnumline(allstr)if len(headcolorflag) > 0:allstr = allstr.replace('\t', ' ')underline = allstr.find('</u>')if underline > 0:startid = underline + 5if allstr[startid] in "《“(【":startid += 1underid = allstr[startid:].find(";")if underid > 0:headcolorflagcount = underidallstr = allstr.replace(';', '')else:underid = allstr[startid:].find(";")if underid > 0:headcolorflagcount = underidallstr = allstr.replace(';', '')allstr = allstr[:startid] + '<font color=%s>'%headcolorflag + allstr[startid:startid+headcolorflagcount] + '</font>' + allstr[startid+headcolorflagcount:]else:markid = allstr.find('、')if markid < 0: markid = allstr.find(')')if markid < 0: markid = allstr.find('.')if markid < 0: markid = allstr.find(')')if markid < 0:markid = allstr.find('《')if markid != 0: markid = allstr.find('“')if markid != 0: markid = allstr.find('(')if markid != 0: markid = allstr.find('【')if markid != 0: markid = -1;if markid > 0:startid = markid + 1startid = allstr.find('章 ') + 2if allstr[startid] == ' ': startid += 1allstr = allstr[:startid] + '<font color=%s>'%headcolorflag + allstr[startid:startid+headcolorflagcount] + '</font>' + allstr[startid+headcolorflagcount:]else:if allstr.find('章 ') > 0:startid = allstr.find('章 ') + 2if allstr[startid] == ' ': startid += 1allstr = allstr[:startid] + '<font color=%s>'%headcolorflag + allstr[startid:startid+headcolorflagcount] + '</font>' + allstr[startid+headcolorflagcount:]else:underid = allstr.find(";")if underid > 0:headcolorflagcount = underidallstr = allstr.replace(";", '')allstr = '<font color=%s>'%headcolorflag + allstr[:headcolorflagcount] + '</font>' + allstr[headcolorflagcount:]if questionmark > 0 and IsNotTermChar(allstr[-1]):allstr = allstr+'?'if sharpnum == 0:sharpnum = allstr.count('#')if sharpnum > 0:allstr = allstr.strip('#')if len(headmarkflag) > 0:allstr = headmarkflag + allstr + endmarkflagif len(circlestr) > 0: allstr = circlestr + allstrif thickblankflag > 0:allstr = '【'+allstr+'】'if redarrowflag:allstr = '<font color=red>\u27a4</font>' + allstrif underlineflag:allstr = '<u>' +allstr + '</u>'if len(notestr) > 0:allstr = allstr + notestrnotestr = ''if urlflag == 1:allstr = '<%s>'%allstrif boldflag:if centerflag != 0 or rightflag != 0:allstr = '<b>%s</b>'%allstrelse:allstr = '**%s**'%allstrelif italicflag != 0:if italicflag == 1:allstr = '*' + allstr + '*'else:allstr = '*__' + allstr + '__*'if supsubflag == 1:allstr = '<sup>%s</sup>'%allstrelif supsubflag == 2:allstr = '<sub>%s</sub>'%allstrif len(fontstr) != 0:insertstr = '%s%s</font>'%(fontstr, allstr)else: insertstr = allstrif headsharpnum > 0:insertstr = '&emsp;'*headsharpnum + insertstrif rightflag:if fontflag == 0:insertsect = insertstr.split('||')insertstr = ''for s in insertsect:insertstr = insertstr + '<div align="right"><font>%s</font></div>\r\n'%selse:insertsect = insertstr.split('||')insertstr = ''for s in insertsect:insertstr = insertstr + '<div align="right">%s</div>\r\n'%s
else:tspsendwindowkey(csdn_title, 'c', control=1, noreturn=1)time.sleep(.1)allstr = clipboard.paste()if len(allstr) == 0:allstr = clipboardstrif giteeflag > 0:if len(allstr) == 0:tspsendwindowkey(csdn_title, 'c', control=1, noreturn=1)time.sleep(.1)allstr = clipboard.paste()printf(sharpnum)if sharpnum == 0:sharpnum = len(allstr) - len(allstr.lstrip('#'))if sharpnum > 0:allstr = '&emsp;'* sharpnum + allstr.lstrip('#')else:headsharpnum = len(allstr) - len(allstr.lstrip('#'))if headsharpnum > 0:allstr = '&emsp;'* headsharpnum + allstr.lstrip('#')allstr = allstr.replace('-->', '→')allstr = allstr.replace('<--', '←')if endmarkflag > 0 and len(headmarkflag) > 0:allstr = allstr + ' ' + headmarkflagif centerflag == 0:if onelineflag == 0:brstr = '<br><br>'if rightflag or centerflag: brstr = '<br>'if allstr.find('\r\n') >= 0:allstr = brstr.join([s for s in allstr.split('\r\n') if len(s.strip(' ')) > 0])elif allstr.find('\n') >= 0:allstr = brstr.join([s for s in allstr.split('\n') if len(s.strip(' ')) > 0])else:if allstr.find('\r\n') >= 0:allstr = ''.join([s for s in allstr.split('\r\n') if len(s.strip(' ')) > 0])elif allstr.find('\n') >= 0:allstr = ''.join([s for s in allstr.split('\n') if len(s.strip(' ')) > 0])allstr = allstr.replace('-->', '→')allstr = allstr.replace('<--', '←')if redarrowflag:allstr = '<font color=red>\u27a4</font>' + allstrif boldflag == 0:if headboldflag > 0 and headlargeflag == 0:allstr = '**%s**'%allstr[0:headboldflag] + allstr[headboldflag:]elif headboldflag > 0 and headlargeflag > 0:if len(sizestr) == 0: ss = '4'else: ss = '5'allstr = '<font size=%s>**%s**</font>'%(ss,allstr[0:headboldflag]) + allstr[headboldflag:]elif headboldflag == 0 and headlargeflag > 0:if len(sizestr) == 0: ss = '4'else: ss = '5'allstr = '<font size=%s>%s</font>'%(ss,allstr[0:headlargeflag]) + allstr[headlargeflag:]else:if headlargeflag > 0:if len(sizestr) == 0: ss = '4'else: ss = '5'allstr = '<font size=%s>%s</font>'%(ss,allstr[0:headlargeflag]) + allstr[headlargeflag:]if sharpnum == 0:sharpnum = allstr.count('#')if sharpnum > 0:allstr = allstr.strip('#')if len(headmarkflag) > 0: allstr = headmarkflag + allstrif questionmark > 0 and IsNotTermChar(allstr[-1]):allstr = allstr+'?'if len(circlestr) > 0: allstr = circlestr + allstrif underlineflag:allstr = '<u>' + allstr + '</u>'if len(notestr) > 0:allstr = allstr + notestrnotestr = ''if urlflag == 1:allstr = '<%s>'%allstrif boldflag:if centerflag != 0 or rightflag != 0:allstr = '<b>%s</b>'%allstrelse:allstr = '**%s**'%allstrelif italicflag != 0:if italicflag == 1:allstr = '*' + allstr + '*'else:allstr = '*__' + allstr + '__*'if thickblankflag > 0:allstr = '【'+allstr+'】'if supsubflag == 1:allstr = '<sup>%s</sup>'%allstrelif supsubflag == 2:allstr = '<sub>%s</sub>'%allstrallstr = str2headnumline(allstr)if len(headcolorflag) > 0:allstr = allstr.replace('\t', ' ')underline = allstr.find('</u>')if underline > 0:startid = underline + 5underid = allstr[startid:].find(";")if underid > 0:headcolorflagcount = underidallstr = allstr.replace(';', '')else:underid = allstr[startid:].find(";")if underid > 0:headcolorflagcount = underidallstr = allstr.replace(';', '')allstr = allstr[:startid] + '<font color=%s>'%headcolorflag + allstr[startid:startid+headcolorflagcount] + '</font>' + allstr[startid+headcolorflagcount:]else:markid = allstr.find('、')if markid < 0: markid = allstr.find(')')if markid < 0: markid = allstr.find('.')if markid < 0: markid = allstr.find(')')if markid < 0:markid = allstr.find('《')if markid != 0: markid = allstr.find('“')if markid != 0: markid = allstr.find('(')if markid != 0: markid = allstr.find('【')if markid != 0: markid = -1;if markid > 0:startid = markid + 1if allstr.find('章 ') > 0: startid = allstr.find('章 ') + 2if allstr[startid] == ' ': startid += 1allstr = allstr[:startid] + '<font color=%s>'%headcolorflag + allstr[startid:startid+headcolorflagcount] + '</font>' + allstr[startid+headcolorflagcount:]else:if allstr.find('章 ') > 0:startid = allstr.find('章 ') + 2if allstr[startid] == ' ': startid += 1allstr = allstr[:startid] + '<font color=%s>'%headcolorflag + allstr[startid:startid+headcolorflagcount] + '</font>' + allstr[startid+headcolorflagcount:]else:underid = allstr.find(";")if underid > 0:headcolorflagcount = underidallstr = allstr.replace(";", '')allstr = '<font color=%s>'%headcolorflag + allstr[:headcolorflagcount] + '</font>' + allstr[headcolorflagcount:]if rightflag:if allstr.find('||') >= 0:insertsect = allstr.split('||')insertstr = ''for s in insertsect:insertstr = insertstr + '<div align="right"><font size=3>%s</font></div>\r\n'%selif allstr.find('\n') >= 0:insertsect = allstr.split('\n')insertstr = ''for s in insertsect:if len(s) == 0: continueinsertstr = insertstr + '<div align="right"><font size=3>%s</font></div>\r\n'%selse: insertstr = '<div align="right"><font size=3>%s</font></div>\r\n'%allstrallstr = insertstrif len(fontstr) != 0:insertstr = '%s%s</font>'%(fontstr, allstr)else: insertstr = allstrif centerflag != 0:insertstr = insertstr.replace('||', '\n')insertstr = "<center>" + insertstr + "</center>"if insertstr.find('\n') >= 0:leftbracket = insertstr.count('<')rightbracket = insertstr.count('>')if leftbracket == rightbracket and leftbracket > 0:strsect = insertstr.split('\r\n')if len(strsect) == 1:strsect = insertstr.split('\n')if len(strsect) > 1:id = strsect[0].rfind('>')headstr = ''if id >= 0:headstr = strsect[0][0:id+1]strsect[0] = strsect[0][id+1:]tailstr = ''id = strsect[-1].find('<')if id >= 0:tailstr = strsect[-1][id:]strsect[-1] = strsect[-1][0:id]if len(headstr) > 0 and len(tailstr) > 0:insertstr = ''emptyflag = -1for s in strsect:if len(s) == 0:if emptyflag >= 0:emptyflag = 1continueif emptyflag > 0:insertstr = insertstr + "<br>"emptyflag = 0insertstr = insertstr + '%s%s%s\r\n'%(headstr, s, tailstr)if brflag != 0: insertstr = insertstr + '<br>'insertstr = insertstr.replace('-->', '→')
insertstr = insertstr.replace('<--', '←')
insertstr = insertstr.replace('--》', '→')
insertstr = insertstr.replace('《--', '←')insertstr = insertstr.replace('<br><br>$$', "$$")
insertstr = insertstr.replace('$$<br><br>', "$$")if retflag != 0 and sharpnum == 0:insertstr = insertstr + '\r\n'if sharpnum > 0:insertstr = '#'*sharpnum + ' ' + insertstr + '\r\n'if nbspflag != 0:insertstr = '&nbsp;\r\n'*nbspflag + insertstrif endnbspflag != 0:insertstr = insertstr + '&nbsp;\r\n'*endnbspflag+'\r\n'if headlineflag != 0:insertstr = '\r\n---\r\n' + insertstrif lineflag != 0:if insertstr.find('<u>00</u>') >= 0:insertstr = insertstr + '\r\n---\r\n'else: insertstr = insertstr + '---\r\n'if len(anchorstr) > 0:insertstr = '<span id="%s"></span>\r\n'%(anchorstr) + insertstrif rnflag > 0:insertstr = insertstr + '\r\n'*rnflagif blockflag == 1: insertstr = '- [ ] ' + insertstr
if blockflag == 2: insertstr = '- [x] ' + insertstrif greatflag > 0:insertstr = '>' * greatflag + insertstr + '\r\n'if insertstr.find('<u>00</u>') >= 0:insertstr = insertstr.replace('# ', '')if menuflag != 0:insertstr = insertstr.replace('\r\n','')if len(insertstr) == 0:insertstr = '@[toc](<font face=黑体 color=teal>文章目录</font>)\r\n\r\n'else:underline = 0if insertstr.find('---') >= 0:insertstr = insertstr.replace('---','')underline = 1if len(sys.argv) < 3:spliteid = insertstr.find('</')if spliteid < 0:insertstr = insertstr + '文章目录'else:insertstr = insertstr[:spliteid] + '文章目录' + insertstr[spliteid:]insertstr = '@[toc](%s)\r\n\r\n'%insertstrif underline > 0:insertstr = insertstr + '---\r\n'if indentflag > 0:insertstr = insertstr.replace('## ', "## &emsp;&emsp;").replace('<br><br>', '<br>&emsp;&emsp;')if giteeflag > 0:centerid = insertstr.find('# <center>')if len(figurestr) > 0:insertstr = insertstr.replace('<div align="right">', '<div align="left">')barflag = 0if centerid >= 0:if insertstr.find('</u>') > 0:ss = insertstr[centerid+2:]barflag = 1else: ss = insertstr[centerid+2:]ss = ss.split('\r')[0]insertstr = '<br><h1 align="center"> %s </h1>\n\n'%ssif barflag > 0:insertstr = insertstr + '---\n'clipboard.copy(insertstr)time.sleep(.1)tspsendwindowkey(gitee_title, "v", control=1, noreturn=1)clipboard.copy(anchorstr)exit()for _ in range(5):insertstr = insertstr.rstrip('\n').rstrip('\r')if sharpnum > 0 and len(sys.argv) > 2:if sharpnum == 1:ss = insertstr.replace('</font>','').replace('</center>', '').replace('※', '').replace('---', '')ss = ss.split('>')[-1].split()[0]dotnum = len(ss) - len(ss.strip('。'))if dotnum > 0:replacestr = ss[-(dotnum + 1):]newstr = '。'*dotnum + ss[-dotnum-1]insertstr = insertstr.replace(replacestr, newstr)insertstr = insertstr.replace('。', '&emsp;')if sharpnum == 1:insertstr = insertstr.replace('|', '<br>')else:count = insertstr.count('&emsp;')if count > 0:insertstr = '#'*sharpnum + ' ' + '&emsp;' * count + insertstr.replace('&emsp;', '').replace('#', '').strip(' ')insertstr = insertstr + '\n'
else:if len(sys.argv) > 3:insertstr = insertstr + '\n'else: insertstr = insertstr + ' 'if sharpnum > 1 and len(sys.argv) == 2:ss = insertstr.split('.')for id,sss in enumerate(ss):if id == 0: continueif len(sss) < 2: continueif sss[0].isdigit() and not sss[1].isdigit() and sss[1] != ' ':ss[id] = sss[0] + ' ' + sss[1:]breakinsertstr = '.'.join(ss)if len(titlenotestr) > 0:insertstr = insertstr + '>%s\n\n'%titlenotestrclipboard.copy(insertstr)
tspsendwindowkey(csdn_title, 'v', control=1, noreturn=1)
time.sleep(.1)clipboard.copy(anchorstr)
tspfocuswindow(csdn_title)

CSDN网站中的版权投诉的标准相关推荐

  1. csdn审核为通过版权投诉原因

    刚刚有个爬虫的博客文章没有通过审核,哎. 问了客服发现是有某网站的名字和网址没删,并且引用了其他网站的连接比如b站. 因此需要删除其他网站的连接,并且文章为爬虫相关的时候需要删除网站名称和相关网址,换 ...

  2. html中使用静态图片做一个csdn网站的首页

    简单使用csdn网站的截图做一个网站的DEMO, 简单把CSDN网站分为四个图片(自己截图),分别为上,左,中,右,使用IDEA创建一个静态Web项目. 代码演示:(不添加样式,简单演示效果) < ...

  3. 视频教程-【吴刚】电商网站详情页设计初级入门标准视频教程-UI

    [吴刚]电商网站详情页设计初级入门标准视频教程 业内知名UID.UED.用户体验.品牌策略与创意设计师,十三年行业职业教育培训经验,业内"UI视频第一人",教学总监.视觉设计讲师. ...

  4. 网站中的个性及风格设计

    一个人拥有自己独特的风格,是一般人所没有的,就会让人注意到那个人的特别,若那个人的风格是正面的,甚至就会引起别人的羡慕与注意,或是赞赏.就如同一个网站,拥有别的网站所没有的风格,就会让浏览者愿意多停留 ...

  5. iPhone App创建与审核步骤二:如何在developer.apple.com网站中设置App预览和截屏以完成App上架

    iPhone App创建与审核步骤二:如何在developer.apple.com网站中设置App预览和截屏以完成App上架,根据图标规范RAD Studio 10.4 for delphi XE 或 ...

  6. 电子商务网站中订单号设计有什么规则和依据吗?

     https://www.zhihu.com/question/19805896#answer-31069940 你是个程序员. 隔壁老王通过你老婆找到你,说要做个"巨牛逼电商网站&qu ...

  7. MarkMonitor 目前最安全的域名注册商,因此,世界500强网站中的22%域名托管于markmonitor公司...

    也许你查询某个大型公司域名whios信息时,常常会发现很多这些大型公司的域名都在一家名为MarkMonitor的公司注册,那么markmonitor是家什么样的公司呢? MarkMonitor是一家从 ...

  8. 2019中韩版权研讨会举行 网络成版权保护主战场

    日新月异的数字技术,为版权保护和发展带来一系列新挑战.目前,中国正在实施创新驱动发展战略和知识产权强国战略,在依法促进版权创造.运用.保护.管理和服务等方面开展了大量富有成效的工作.6月4日,在四川成 ...

  9. 在SharePoint网站中访问Webservice被拒绝的解决方法

    在SharePoint网站中访问Webservice时可能会遇到如下的问题: 原因是SharePoint默认已经禁止对后缀为asmx的文件进行访问,所以回出现如上的问题,解决方法很简单,打开Share ...

最新文章

  1. python常用数据结构_Python入门: 数据结构大汇总
  2. .net中调用esb_大型ESB服务总线平台服务运行分析和监控预警实践
  3. python对二维数组统计某一行的去重计数_Python数据分析笔记——Numpy、Pandas库
  4. 仿函数functors
  5. 多个so合并为一个so的思路
  6. VMware Workstation v14.1.3 精简特别版本
  7. 【Python】9×9数独计算器
  8. 如何恢复删除的文件?wps文件恢复,4种方法教你找回来
  9. 苹果计算机重装系统步骤,苹果台式电脑重装系统教程,适合imac恢复出厂设置...
  10. php冒泡排序图解,PHP冒泡排序(Bubble Sort)代码实现图解
  11. 迭代收缩阈值算法matlab,一种基于自适应快速迭代收缩阈值算法的图像处理方法与流程...
  12. Echart图实现tooltips循环轮播(方法)
  13. VS2013+OpenCV2.4.10配置
  14. 海南“多规合一”改革促行政审批提速城乡面貌提质
  15. 用iPhone一秒拍摄3D照片,Facebook这项技术厉害了
  16. 电子器件系列25:74HC138译码器
  17. 服务容错 - Hystrix
  18. python中括号和方括号的问题
  19. IME2_AHK输入法自动/智能切换 v1.05
  20. blast序列比对参数的含义

热门文章

  1. 学生成绩管理系统(转载)
  2. 网站SEO诊断的六个方面
  3. mysql数据库备份与导入
  4. (九)巴菲特与索罗斯的投资习惯:术业有专攻
  5. xp如何配置信息服务器地址,xp如何配置信息服务器地址
  6. .NetCore——Autofac使用
  7. .wine/drive_c/users/Public/Application Data/Source Insight/4.0
  8. 网络安全必备的五款免费网络漏洞扫描器
  9. 为什么都在选择学习Java
  10. 2021-2027全球与中国R717制冷剂市场现状及未来发展趋势