摘要:
#! /usr/bin/env python3 import random checkcode = "" ## 全部为数字的验证码 # for i in range(4): # current = random.randrange(0,6) # checkcode += str(current) # print(checkcode) ## 有数字、字母的验证码 for i i... 阅读全文
摘要:
f = open("1.txt", "r", encoding="utf-8") f_new = open("2.txt", "w", encoding="utf-8") find_str = "wangzai" replace_str = "doubi" for line in f: if find_str in line: line = line.replace(fi... 阅读全文