随笔分类 - python
python 俄罗斯方块
摘要:main.py import sys import time import pygame from pygame.locals import * import blocks SIZE = 30 # 每个小方格大小 BLOCK_HEIGHT = 25 # 游戏区高度 BLOCK_WIDTH = 10
贪吃蛇python
摘要:"""贪吃蛇""" import random import sys import time import pygame from pygame.locals import * from collections import deque SCREEN_WIDTH = 600 # 屏幕宽度 SCREE
python 聊天室client代码
摘要:
import socket import threading people_name = '' people_send = '' #101.34.212.195 def client_send(sock): global people_name global people_send while Tr

python统计文件夹下不同文件的数量和大小
摘要:
import os wjzd={} wjsize={} lj="wjcl/src/test" def get_size_type(f_path): global lj files_name = os.listdir(f_path) for name in files_name: file_path

python 文件分类
摘要:
import os import shutil wj={"图片":".jpeg.jpg.png.jfif","文档":".txt.docx.pdf.gitkeep","音乐":".mp3.wav","影像":".mp4.flv"} lj1="wjcl/src/test2" lj="wjcl/src/
