- 博客(8)
- 收藏
- 关注
原创 python滑稽代码
python滑稽代码代码如下from turtle import*setup(600,600,200,200)#脸penup()goto(-210,0)seth(-90)pendown()pencolor('orange')pensize(4)begin_fill()circle(210,360)fillcolor('yellow')end_fill()pencolor('black')#画嘴巴pensize(5)penup()goto(-150,-30)pendow
2020-12-17 20:36:47
2501
1
原创 樱花树(python)
python樱花树代码如下import turtle as Timport randomimport time # 画樱花的躯干(60,t)def Tree(branch, t): time.sleep(0.0005) if branch > 3: if 8 <= branch <= 12: if random.randint(0, 2) == 0: t.color('snow') #
2020-12-15 20:49:59
3256
2
原创 时钟程序(python)代码
时钟程序(python)代码代码如下# coding=utf-8 import turtlefrom datetime import * # 抬起画笔,向前运动一段距离放下def Skip(step): turtle.penup() turtle.forward(step) turtle.pendown() def mkHand(name, length): # 注册Turtle形状,建立表针Turtle turtl
2020-12-15 20:40:08
6235
1
原创 超级简单的代码(python)
超级简单的代码(python)import turtleturtle.speed(100)turtle.hideturtle()for i in range(200): turtle.right(70) turtle.forward(i)快去看看吧
2020-12-15 19:53:30
3140
7
原创 C语言版彩色版贪吃蛇
C语言版彩色版贪吃蛇代码如下#include <stdio.h>#include <windows.h>#include <conio.h>#include <malloc.h>#include <time.h>#include <stdlib.h>void setmouth(int x, int y);//设置光标void background();//背景生成void setcolour(int a);//设置颜
2020-12-13 17:32:00
1121
1
原创 描边盛开火玫瑰
python描边盛开火玫瑰代码如下import turtle as tt.setup(800,800)t.hideturtle()t.speed(11)t.penup()t.goto(50,-450)t.pensize(5)t.pencolor("black")t.seth(140)t.pendown()t.speed(10)t.circle(-300,60)t.fd(100)#jiaodu80#1yet.seth(10)t.fd(50)t.fillcolor("gr
2020-12-13 16:25:44
1414
原创 python烟花代码
python烟花代码如下# -*- coding: utf-8 -*-import math, random,timeimport threadingimport tkinter as tkimport re#import uuidFireworks=[]maxFireworks=8height,width=600,600class firework(object): def __init__(self,color,speed,width,height):
2020-12-13 15:29:34
129338
69
原创 C语音版飞机大战
C语音版飞机大战不多说直接上代码#include<iostream>#include<windows.h>#include<conio.h>#include<time.h>#include<string>using namespace std;/*=============== all the structures ===============*/typedef struct Frame{COORD position[2];
2020-12-13 14:53:30
1435
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人