1.关掉死机程序

有时候你会发现电脑死机了有些程序关不掉(或者卡了,中病毒了),怎么办呢?

其实操作十分的简单,这种方法大部分程序都可以关掉.

1.用右键点击任务栏

大概就是这个东西:

电脑的操作技能-LMLPHP

要点击空白的地方,它会出现两个东西

电脑的操作技能-LMLPHP

点击上面的任务管理器

它会显示正在运行的程序。

电脑的操作技能-LMLPHP

 右键点击你想关掉的程序,点击结束任务,它就会被强制关掉。

2.一些特殊符号

按住Windows的启动键,再按一个"。",你就可以得到表情符号

电脑的操作技能-LMLPHP

你可以选择你想要的表情,各种各样的表情包都有还有颜文字. 

3.截图

按住Windows启动键加上shift加上S,如果不行可以试一下Windows启动键加上W。可以直接截图。如果点他那个软件,可能会消失你想拍的东西,就比如我拍的任务管理器。就是用快捷键拍的。

4.语音输入

按住Windows启动键加上H,你就可以开始语音输入,对于不会打字的人来说特别好使。

5.分享一个Python做的贪吃蛇

bug版:

import pygame
import random as r
import time
pygame.init()
pygame.display.set_caption('tcs')
screen = pygame.display.set_mode((800, 600))
sx = 500
sy = 200
ss = [[sx + 40, sy],[sx + 80, sy]]
cx = 160
cy = 160
try:
    r2 = 250
    g = 0
    b = 250
except:
    print(1)
while True:
    screen.fill((0,0,0))
    st = [sx, sy]

    pygame.draw.rect(screen, (255,0,0), (st[0],st[1],40,40))
    for i in range(0,len(ss)):
        pygame.draw.rect(screen, (r2,g,b), (ss[i][0],ss[i][1],40,40))

    pygame.draw.rect(screen, (255,255,255), (cx,cy,40,40))
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            exit()
    if event.type == pygame.KEYDOWN:
        if event.key == pygame.K_UP:
            sy -= 5
            ss.insert(0, list(st))
            ss.pop()
        if event.key == pygame.K_DOWN:
            sy += 5
            ss.insert(0, list(st))
            ss.pop()
        if event.key == pygame.K_LEFT:
            sx -= 5
            ss.insert(0, list(st))
            ss.pop()
        if event.key == pygame.K_RIGHT:
            sx += 5
            ss.insert(0, list(st))
            ss.pop()
    for i in range(40):
        for j in range(40):
            if sx + i == cx +i and sy + j*(len(ss)+1) == cy + j:
                ss.append([sx + (len(ss)+1)*40 , sy])
    pygame.display.update()
    pygame.time.Clock().tick(30)

正常: 加了一个背景音乐

import pygame
pygame.mixer.init()
pygame.mixer.music.load('声音\中国话.mp3')
pygame.mixer.music.set_volume(0.1)
pygame.mixer.music.play(-1)
while True:
    aa = 0
    import pygame
    import random as r
    import time
    pygame.init()
    pygame.display.set_caption('tcs')
    screen = pygame.display.set_mode((800, 600))
    ss = [[100,100],[80,100],[60,100],[40,100],[0,100],[-40,100]]
    st = [100,100]
    sfx = 'right'
    x = r.randint(0,30)
    y = r.randint(0,20)
    sxy = [x*20, y*20]
    while True:
        screen.fill((0,0,0))
        he = '分数:' + str(aa)
        z = pygame.font.Font('字体\叶根友刀锋黑草.ttf', 50).render(he,True,(100,100,100))
        screen.blit(z, (10,10))
        for i in ss:
            pygame.draw.rect(screen, (255,255,255), (i[0],i[1],20,20))
        pygame.draw.rect(screen,(144,0,244),(st[0],st[1],20,20))
        if sfx == 'right':
            st[0] += 10
        if sfx == 'left':
            st[0] -= 10
        if sfx == 'up':
            st[1] -= 10
        if sfx == 'down':
            st[1] += 10
        ss.insert(0, list(st))
        ss.pop()
        pygame.draw.rect(screen, (255,255,255), (sxy[0],sxy[1],20,20))
        if x == 0 or y == 0:
            x = r.randint(0, 30)
            y = r.randint(0, 20)
            sxy = [x * 10, y * 10]
            pygame.draw.rect(screen, (255, 255, 255), (sxy[0], sxy[1], 20, 20))
        if sxy in ss:
            aa+=1
            x = r.randint(0, 30)
            y = r.randint(0, 20)
            sxy = [x * 10, y * 10]
            pygame.draw.rect(screen, (255, 255, 255), (sxy[0], sxy[1], 20, 20))
            ss.insert(0, list(st))
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                exit()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_UP:
                    sfx = 'up'
                if event.key == pygame.K_DOWN:
                    sfx = 'down'

                if event.key == pygame.K_LEFT:
                    sfx ='left'


                if event.key == pygame.K_RIGHT:
                    sfx = 'right'
        if st in ss[2:]:
            break
        if st[0] >= 800:
            break
        if st[0] <= 0:
            break
        if st[1] >= 600:
            break
        if st[1] <= 0:
            break
        pygame.display.update()
        pygame.time.Clock().tick(10)
    import pygame
    print(aa)
    pygame.init()
    pygame.display.set_caption('ret')
    s = pygame.display.set_mode((300, 300))
    a = pygame.image.load('照片\屏幕截图_20230119_101426.png')
    b = pygame.image.load('照片\屏幕截图_20230119_105920.png')
    f = pygame.font.Font('字体\叶根友刀锋黑草.ttf', 50)
    g = f.render('ko', True, (0, 0, 0))

    f2 = pygame.font.Font('字体\叶根友刀锋黑草.ttf', 50)
    g2 = f.render(he, True, (0, 0, 0))

    o = 1
    while o <= 2:
        s.fill((255, 255, 255))  # 背景颜色
        s.blit(g, (10, 10))  # ko
        s.blit(g2, (10, 100))
        s.blit(b, (203, 247))  # b的位置
        s.blit(a, (10, 247))
        x, y = pygame.mouse.get_pos()  # 鼠标位
        for i in range(43):
            for j in range(49):
                if 203 + j == x and 247 + i == y and pygame.mouse.get_pressed()[0] == True:
                    exit()
        for i in range(148):
            for j in range(87):
                if 10 + j == x and 247 + i == y and pygame.mouse.get_pressed()[0] == True:
                    o = 100000000
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                exit()
        pygame.display.update()
        pygame.time.Clock().tick(60)
05-26 05:09