掌握Windows 7配置:70-680认证指南

需积分: 9 2 下载量 28 浏览量 更新于2024-07-23 收藏 29.86MB PDF 举报
《微软70-680考试指南:Windows 7配置》是一本由Ian McLean和Orin Thomas共同编写的官方培训教材,由Microsoft Press出版。这本书专注于Windows 7操作系统的技术配置和管理,是专为那些希望深入了解和准备Microsoft认证考试70-680的读者设计的。 本书详细涵盖了Windows 7的核心技术特性和功能,包括但不限于: 1. **Windows 7概述**:介绍Windows 7的操作系统架构、用户界面改进(如Aero主题)以及新功能如任务栏、跳转列表和库的使用。 2. **系统安装与升级**:指导读者如何进行系统安装、驱动程序管理和升级,以及Windows 7的兼容性策略。 3. **网络与安全**:讲解Active Directory的配置和管理,包括域控制器、用户身份验证、组策略和Windows防火墙的设置,以及BitLocker数据保护技术。 4. **应用软件**:涉及Microsoft Office套件(如Word、Excel、PowerPoint等)的高级功能和集成,以及Windows 7中的新工具和技术,如Hyper-V虚拟化平台。 5. **互联网与浏览器**:深入探讨Internet Explorer的安全性、隐私设置和Web技术的应用,以及Windows 7对多媒体的支持,如DirectX。 6. **移动与云计算**:介绍ReadyBoost技术,以及Windows 7如何支持移动设备和云服务的连接。 7. **数据库与开发**:对于有SQL Server背景的读者,会涉及SQL Server的集成以及Windows 7环境下Visual Basic、Windows编程和.NET框架的应用。 8. **系统维护与优化**:提供关于性能调优、系统恢复、备份和故障排除的实用技巧。 《微软70-680》一书不仅适用于考试备考者,也适合Windows 7的专业技术人员作为参考手册,帮助他们提升技能并理解操作系统在实际工作环境中的应用。版权方面,所有内容未经Microsoft Press书面许可不得复制或传播。此外,该书在全球范围内通过书店和分销商发行,国际版本的更多信息可通过Microsoft Corporation办公室或直接联系Microsoft Press International获取。

def choose(): root=tk.Tk() root.title("数据脱敏") root.geometry("1000x750") tk.Label(root, text="请输入想要脱敏的信息:", font=("微软雅黑 -30")).place(x=10, y=15) tk.Label(root, text="手机号:",font=("微软雅黑 -20")).place(x=10, y=60) phone_input=tk.StringVar() frame_phone_input=tk.Entry(root, textvariable=phone_input) frame_phone_input.place(x=90, y=68,height=20,width=120) tk.Label(root, text="身份证号:",font=("微软雅黑 -20")).place(x=10, y=100) id_input=tk.StringVar() frame_id_input=tk.Entry(root, textvariable=id_input) frame_id_input.place(x=110, y=108,height=20,width=120) tk.Label(root, text="邮箱:",font=("微软雅黑 -20")).place(x=10, y=140) id_input=tk.StringVar() frame_youxiang_input=tk.Entry(root, textvariable=id_input) frame_youxiang_input.place(x=75, y=148,height=20,width=120) tk.Label(root, text="出生日期:",font=("微软雅黑 -20")).place(x=10, y=180) id_input=tk.StringVar() frame_date_input=tk.Entry(root, textvariable=id_input) frame_date_input.place(x=110, y=188,height=20,width=120) btn1=tk.Button(root, text="替换", font=("微软雅黑 -20"),bg='pink',command=lambda: tihuan(frame_phone_input.get(), frame_id_input.get())) btn1.place(x=600, y=60) def tihuan(phone_input, id_input): # 替换手机号和身份证号码的函数 def replace_sensitive_info(match): sensitive_info = match.group(0) if re.match(r'^1\d{10}$', sensitive_info): # 匹配手机号 return sensitive_info[0:3] + 'aaaa' + sensitive_info[7:] elif re.match(r'^\d{17}[\dXx]$', sensitive_info): # 匹配身份证号 return sensitive_info[0:8] + 'aaaaaaaa' + sensitive_info[16:] else: return sensitive_info # 数据脱敏函数 def desensitize_data(data): # 匹配手机号和身份证号码 pattern = re.compile(r'1\d{10}|\d{17}[\dXx]') # 替换所有匹配的敏感信息 desensitized_data = re.sub(pattern, replace_sensitive_info, data) return desensitized_data # 测试数据脱敏函数 data = phone_input + id_input desensitized_data = desensitize_data(data) a1=tk.Label(root,text=("脱敏后的数据",desensitized_data),font=("微软雅黑 -20")) a1.place(x=590,y=300)报错root 没有被定义怎么改

2023-06-06 上传

def choose(): window=tk.Tk() window.title("菜单") window.geometry("1000x750") tk.Label(window, text="数据脱敏系统", font=("微软雅黑 -30"),activebackground='pink').place(x=400, y=20) tk.Label(window, text="(请选择)", font=("黑体", 14)).place(x=450, y=60) table_2=tk.Button(window, text="对表格中数据进行脱敏", font=("微软雅黑 -30"),bg='pink',command=table2) table_2.place(x=100, y=330)def table2(): root = tk.Tk()# 这是主窗口,也就是所说的初始界面 window = tk.Toplevel() root.title("欢迎使用本系统") # 窗口名 root.geometry("1000x750") # 窗口大小 # 手机号、身份证号、年龄、出生日期 data = [ {"手机号": "18845298308", "身份证号": "110101199001011234", "年龄": 31, "出生日期": "1990-01-01"}, {"手机号": "13836277378", "身份证号": "110101199002022345", "年龄": 20, "出生日期": "2002-10-25"}]def desensitize_data(): pattern = re.compile(r'1\d{10}|\d{17}[\dXx]') new_data = data.copy() for i in range(len(data)): for key in data[i]: if isinstance(data[i][key], str): new_data[i][key] = re.sub(pattern, replace_sensitive_info, data[i][key]) return new_data def replace_sensitive_info(match): sensitive_info = match.group(0) if re.match(r'^1\d{10}$', sensitive_info): # 匹配手机号 return sensitive_info[0:3] + 'aaaa' + sensitive_info[7:] elif re.match(r'^\d{17}[\dXx]$', sensitive_info): # 匹配身份证号 return sensitive_info[0:8] + 'aaaaaaaa' + sensitive_info[16:] else: return sensitive_info def replace_mask(): global data data = desensitize_data() show_data() def show_original_data(): global data data = [ {"手机号": "18845298308","身份证号": "110101199001011234", "年龄": 31, "出生日期": "1990-01-01"}, {"手机号": "13836277378", "身份证号": "110101199002022345", "年龄": 20, "出生日期": "2002-10-25"}]show_data() replace_mask_btn = Button(root, text="替换脱敏", font=("微软雅黑 -20"),bg='pink',command=replace_mask) replace_mask_btn.place(x=600,y=20) replace_unmask_btn = Button(root, text="还原", font=("微软雅黑 -20"),bg='pink', command=show_original_data) replace_unmask_btn.place(x=180,y=420)点击还原按钮没有反应代码应该怎么改

2023-06-10 上传