首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看Python
public class Rectangle{
    private int length;
    private int width;
    
    public Rectangle(int length,int width){
      this.length=length;
      this.width=width;
    }
    
    public void set(int length,int width){
      this.length=length;
      this.width=width;
......................
阅读全部 | yhnju485 贴于 2025年11月4日 15:06     hide bbsi
print(123)
阅读全部 | zhuiyi1222 贴于 2025年10月18日 09:46     hide bbsi
大家好!我要向网上公布这个作品
https://shequ.codemao.cn/work/281078655
阅读全部 | wengzixi 贴于 2025年10月7日 09:42     hide bbsi
import tkinter as tk
from tkinter import messagebox
import random

class SnakeGame:
    def __init__(self, master):
        self.master = master
        self.master.title("贪吃蛇游戏")
        self.master.geometry("600x500")
        self.master.resizable(False, False)
        
        # 游戏参数设置
......................
阅读全部 | wyu8888 贴于 2025年8月21日 14:56     hide bbsi
DERUNS QWSSDX POSJSS 238281 231123 982312
阅读全部 | wengzixi 贴于 2025年8月15日 10:39     hide bbsi
<div class="row">
  <div class="medium-12 columns">
    <div class="panel">
      <h1>Foundation 页面</h1>
      <p>重置窗口大小,查看效果!</p>
      <button type="button" class="button small">我是按钮!</button>
    </div>
  </div>
</div>
 
<div class="row">
  <div class="medium-4 columns">
......................
阅读全部 | 孙景旭 贴于 2025年7月29日 21:52     hide bbsi
import pygame,sys,random
from pygame.locals import *
#定义颜色变量  目标方块的颜色
redColor = pygame.Color(250,0,0)
#贪吃蛇的颜色
whiteColor = pygame.Color(255,255,255)
#背景颜色
blackColor = pygame.Color(0,0,0)
 
def gameOver():
    pygame.quit()
    sys.exit()
......................
阅读全部 | wengzixi 贴于 2025年7月28日 18:50     hide bbsi
import pygame,sys,random
from pygame.locals import *
#定义颜色变量  目标方块的颜色
redColor = pygame.Color(250,0,0)
#贪吃蛇的颜色
whiteColor = pygame.Color(255,255,255)
#背景颜色
blackColor = pygame.Color(0,0,0)
 
def gameOver():
    pygame.quit()
    sys.exit()
......................
阅读全部 | wengzixi 贴于 2025年7月28日 18:50     hide bbsi
import pygame
import random
 
 
def main():
    # 初始化pygame
    pygame.init()
 
    # 默认不全屏
    fullscreen = False
    # 窗口未全屏宽和高
    WIDTH, HEIGHT = 1100, 600
......................
阅读全部 | wengzixi 贴于 2025年7月28日 18:47     hide bbsi
import pygame
import sys
import math
import random
from pygame.locals import *

# 初始化pygame
pygame.init()

# 屏幕设置
SCREEN_WIDTH = 1200
SCREEN_HEIGHT = 700
......................
阅读全部 | 宇智波泉奈 贴于 2025年7月5日 16:51     hide bbsi
1 2 3 4 5 6 7 8 9 10 下一页