进化:从孤胆极客到高效团队_极客学校:学习Windows 7 –配置设备

进化:从孤胆极客到高效团队

进化:从孤胆极客到高效团队

In this edition of Geek School we are going to cover the configuration of hardware in Windows 7. Come join us.

在此版本的Geek School中,我们将介绍Windows 7中的硬件配置。快来加入我们。

Be sure to check out the other articles in the series (so far)

请务必查看该系列中的其他文章(到目前为止)

The Hardware and Application Configuration objective accounts for 14 percent of the exam. While there is not a lot of theory to learn in these sections, they are the sections that often come up in the simulation questions. For this reason we decided to split up hardware configuration from application configuration and show you exactly what you will need to know in the classic How-To Geek style.

硬件和应用程序配置目标占考试的14%。 虽然在这些部分中没有很多理论要学习,但它们是模拟问题中经常出现的部分。 因此,我们决定将硬件配置从应用程序配置中分离出来,并以经典的How-To Geek风格向您确切显示您需要了解的内容。

装置经理 (Device Manager)

Device Manager allows you to graphically view the hardware that is connected to your computer. It also gives you the facility to:

设备管理器允许您以图形方式查看连接到计算机的硬件。 它还使您能够:

  • Manage the drivers that your hardware is using.

    管理您的硬件正在使用的驱动程序。
  • Show hidden devices.

    显示隐藏的设备。
  • Troubleshoot broken drivers.

    对损坏的驱动程序进行故障排除。

There are a few ways of getting to Device Manager, and the exam requires you to know them all.

有几种进入“设备管理器”的方法,并且考试要求您全面了解它们。

通过Windows界面 (Through the Windows Interface)

Click on the Start Orb and open Control Panel.

单击开始球,然后打开控制面板。

image

Then navigate into the Hardware and Sound category.

然后导航到“硬件和声音”类别。

image

Here you will see a Device Manager hyperlink.

在这里,您将看到“设备管理器”超链接。

image

使用计算机管理 (Using Computer Management)

A more common method is to use the Computer Management Console which can be opened by clicking on the Start Orb, then right clicking on Computer and selecting Manage from the context menu.

一种更常见的方法是使用“计算机管理控制台”,可以通过单击“启动球”,然后右键单击“计算机”并从上下文菜单中选择“管理”来打开它。

image

When the console opens you will have to select Device Manager in the left hand panel.

当控制台打开时,您将必须在左侧面板中选择“设备管理器”。

image

使用命令行启动计算机管理 (Using the Command Line to Launch Computer Management)

You can also launch Computer Management from a command prompt, run box or from the Start Menu’s search bar by typing the following:

您还可以通过在命令提示符,运行框或“开始”菜单的搜索栏中键入以下内容来启动“计算机管理”:

mmc compmgmt.msc

mmc compmgmt.msc

image

维护驱动程序并进行故障排除 (Maintaining and Troubleshooting Drivers)

Often, when you have a driver issue it results in a serious problem, most commonly a BSOD (Blue Screen Of Death). In order to prevent this, you will want to keep your drivers updated.

通常,当您遇到驱动程序问题时,会导致严重的问题,最常见的是BSOD(蓝屏死机)。 为了避免这种情况,您将需要更新驱动程序。

Note: I don’t agree with this rule and live by the “if its not broken, don’t fix it” rule, and The Geek agrees with me. However, as far as the exam goes, you will have to tell them what they want to hear.

注意:我不同意该规则,而是遵循“如果不损坏,请不要修复”规则, The Geek同意我的观点 但是,就考试而言,您必须告诉他们他们想听什么。

更新设备驱动程序 (Updating Device Drivers)

The first thing you want to do is see exactly which driver the device is using. You can do that by right clicking on it and viewing its properties.

您要做的第一件事就是准确查看设备使用的驱动程序。 您可以通过右键单击它并查看其属性来做到这一点。

image

Then switch over to the driver tab and click on the driver details button.

然后切换到驱动程序选项卡,然后单击驱动程序详细信息按钮。

image

Here you will be able to see exactly which files the driver is using. It is recommended that you keep this in mind should you have to dig through any kernel dumps after the update.

在这里,您将能够准确查看驱动程序正在使用哪些文件。 建议您记住这一点,如果在更新后必须浏览所有内核转储。

image

Once you have made a note of that you can go ahead and update the driver by click on the Update Driver button.

记下之后,可以单击“更新驱动程序”按钮来继续更新驱动程序。

image

禁用驱动程序 (Disabling Drivers)

If your PC does ever crash, or keeps crashing continually, the first thing you want to do is remove any newly installed hardware. On one hand this is a simple solution, but what if you recently built your first computer or installed more than one new component? In cases like this it is better to disable one component at a time through device manager. To do so right click on a device and choose disable from the context menu.

如果您的PC确实崩溃了,或者持续崩溃,那么您要做的第一件事就是删除所有新安装的硬件。 一方面,这是一个简单的解决方案,但是如果您最近建造了第一台计算机或安装了多个新组件,该怎么办? 在这种情况下,最好一次通过设备管理器禁用一个组件。 为此,请在设备上单击鼠标右键,然后从上下文菜单中选择“禁用”。

image

The device’s icon will be overlaid with a downwards pointing arrow, which signifies it has been disabled.

设备的图标将被向下的箭头覆盖,表示该设备已被禁用。

image

识别资源冲突 (Identifying Resource Conflicts)

The final exam objective regarding hardware requires you to identify if a driver is having resource conflicts. To do so again head into the devices properties.

有关硬件的期末考试目标要求您确定驱动程序是否存在资源冲突。 为此,请再次进入设备属性。

image

Then switch over to the resources tab.

然后切换到资源选项卡。

image

Near the bottom of the Window you will see the conflicting device list box. Fortunately for us, in recent Windows versions this is very rare.

在窗口底部附近,您将看到冲突的设备列表框。 对我们来说幸运的是,在最近的Windows版本中,这种情况很少见。

image

家庭作业 (Homework)

You only have one homework item for today:

您今天只有一项作业:

Stay tuned for tomorrow’s Geek School article, where we cover how to manage your hard drives.

请继续关注明天的极客学校文章,我们将在其中介绍如何管理您的硬盘。



If you have any questions you can tweet me @taybgibb, or just leave a comment.

如果您有任何疑问,可以发给@taybgibb ,或发表评论。

翻译自: https://www.howtogeek.com/133085/geek-school-windows-7-configuring-devices-70-680/

进化:从孤胆极客到高效团队

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个简单的使用Tkinter实现的孤胆枪影游戏代码: ```python import tkinter as tk import random # 游戏常量 WIDTH = 600 HEIGHT = 400 PLAYER_SPEED = 5 BULLET_SPEED = 7 ENEMY_SPEED = 3 ENEMY_FREQ = 100 # 敌人出现的频率(每100帧出现一个敌人) ENEMY_SCORE = 10 # 击败敌人得到的分数 # 游戏状态 score = 0 player_alive = True bullets = [] enemies = [] # 创建主窗口 root = tk.Tk() root.title("孤胆枪影") root.geometry(f"{WIDTH}x{HEIGHT}") # 创建画布 canvas = tk.Canvas(root, bg="white") canvas.pack(expand=True, fill=tk.BOTH) # 创建玩家角色 player = canvas.create_rectangle(WIDTH//2-20, HEIGHT-50, WIDTH//2+20, HEIGHT-10, fill="blue") # 创建分数标签 score_label = tk.Label(root, text=f"得分:{score}") score_label.pack(side=tk.TOP) # 处理按键事件 def on_key_press(event): global player_alive, bullets if player_alive: x, y = canvas.coords(player) if event.keysym == "Left": if x > 0: canvas.move(player, -PLAYER_SPEED, 0) elif event.keysym == "Right": if x < WIDTH-40: canvas.move(player, PLAYER_SPEED, 0) elif event.keysym == "space": # 创建新的子弹对象 bullet = canvas.create_rectangle(x+18, y-10, x+22, y, fill="red") bullets.append(bullet) canvas.move(bullet, 0, -BULLET_SPEED) elif event.keysym == "Escape": player_alive = False # 处理游戏循环 def loop(): global score, player_alive, bullets, enemies if player_alive: # 创建新的敌人对象 if random.randint(0, ENEMY_FREQ) == 0: enemy_x = random.randint(0, WIDTH-30) enemy = canvas.create_rectangle(enemy_x, 0, enemy_x+30, 30, fill="red") enemies.append(enemy) # 移动子弹 for bullet in bullets: canvas.move(bullet, 0, -BULLET_SPEED) # 检测子弹是否击中敌人 for enemy in enemies: if canvas.coords(bullet)[1] < canvas.coords(enemy)[3] and \ canvas.coords(bullet)[0] > canvas.coords(enemy)[0] and \ canvas.coords(bullet)[2] < canvas.coords(enemy)[2]: score += ENEMY_SCORE score_label.config(text=f"得分:{score}") canvas.delete(bullet) bullets.remove(bullet) canvas.delete(enemy) enemies.remove(enemy) break # 检测子弹是否超出画布 if canvas.coords(bullet)[1] < 0: canvas.delete(bullet) bullets.remove(bullet) # 移动敌人 for enemy in enemies: canvas.move(enemy, 0, ENEMY_SPEED) # 检测敌人是否撞到玩家 if canvas.coords(enemy)[3] > canvas.coords(player)[1] and \ canvas.coords(enemy)[0] < canvas.coords(player)[2] and \ canvas.coords(enemy)[2] > canvas.coords(player)[0]: player_alive = False canvas.create_text(WIDTH//2, HEIGHT//2, text="游戏结束", font=("Arial", 30), fill="red") break # 检测敌人是否超出画布 if canvas.coords(enemy)[3] > HEIGHT: canvas.delete(enemy) enemies.remove(enemy) # 继续游戏循环 root.after(10, loop) else: # 游戏结束 canvas.create_text(WIDTH//2, HEIGHT//2, text="游戏结束", font=("Arial", 30), fill="red") # 绑定按键事件 root.bind("<KeyPress>", on_key_press) # 启动游戏循环 loop() # 进入主事件循环 root.mainloop() ``` 注意,这个代码只是一个简单的示例,并没有考虑到很多细节问题,如:子弹和敌人的数量限制、敌人的移动方式、玩家的生命值等等。如果想要实现更完整的孤胆枪影游戏,需要进行更多的开发工作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值