烟花代码如下:
package love;
import java.applet.Applet;。
import java.awt.Color;。
import java.awt.Graphics;。
import java.net.URL;。
import java.util.Random;。
/**
* 烟花
* @author enjoy。
*/
@SuppressWarnings("serial")。
public class Q extends Applet implements Runnable {。
public int speed, variability, Max_Number, Max_Energy, Max_Patch,。
Max_Length, G;
public String sound;。
private int width, height;。
private Thread thread = null;。
private BeaClassDemo bcd[];。
public void init() {。
int i;
this.setSize(1900, 900);。
width = getSize().width - 1;。
height = getSize().height - 1;。
speed = 1; // 烟花绽放的速度。
variability = 10;。
Max_Number = 980; // 可发出烟花的最大数目。
Max_Energy = width + 50;。
Max_Patch = 90; // 最大的斑点数。
Max_Length = 90; // 斑点的最大距离。
G = 150; // 向地面弯曲的力度。
bcd = new BeaClassDemo[Max_Number];。
for (i = 0; i < Max_Number; i++)。
bcd[i] = new BeaClassDemo(width, height, G);。
public void start() {。
if (thread == null) {。
thread = new Thread(this);。
thread.start();。
@SuppressWarnings("deprecation")。
public void stop() {。
if (thread != null) {。
thread.stop();
thread = null;
@SuppressWarnings({ "unused", "static-access" })。
public void run() {。
int i;
int E = (int) (Math.random() * Max_Energy * 3 / 4) + Max_Energy / 4 + 1;。
int P = (int) (Math.random() * Max_Patch * 3 / 4) // 烟花的斑点数。
+ Max_Patch / 4 + 1;。
int L = (int) (Math.random() * Max_Length * 3 / 4) // 烟花可发射出的距离。
+ Max_Length / 4 + 1;。
long S = (long) (Math.random() * 10000);。
boolean sleep;
Graphics g = getGraphics();。
URL u = null;
while (true) {
try {
thread.sleep(1000 / speed);。
} catch (InterruptedException x) {。
sleep = true;
for (i = 0; i < Max_Number; i++)。
sleep = sleep && bcd[i].sleep;。
if (sleep && Math.random() * 100 < variability) {。
E = (int) (Math.random() * Max_Energy * 3 / 4) + Max_Energy / 4。
+ 1;
P = (int) (Math.random() * Max_Patch * 3 / 4) + Max_Patch / 4。
+ 1;
L = (int) (Math.random() * Max_Length * 3 / 4) + Max_Length / 4。
+ 1;
S = (long) (Math.random() * 10000);。
for (i = 0; i < Max_Number; i++) {。
if (bcd[i].sleep && Math.random() * Max_Number * L < 1) {。
bcd[i].init(E, P, L, S);。
bcd[i].start();。
bcd[i].show(g);。
public void paint(Graphics g) {。
g.setColor(Color.black);。
g.fillRect(0, 0, width + 1, height + 1);。
class BeaClassDemo {。
public boolean sleep = true;。
private int energy, patch, length, width, height, G, Xx, Xy, Ex[], Ey[], x,。
y, Red, Blue, Green, t;。
private Random random;。
public BeaClassDemo(int a, int b, int g) {。
width = a;
height = b;
G = g;
public void init(int e, int p, int l, long seed) {。
int i;
energy = e;
patch = p;
length = l;
// 创建一个带种子的随机数生成器。
random = new Random(seed);。
Ex = new int[patch];。
Ey = new int[patch];。
Red = (int) (random.nextDouble() * 128) + 128;。
Blue = (int) (random.nextDouble() * 128) + 128;。
Green = (int) (random.nextDouble() * 128) + 128;。
Xx = (int) (Math.random() * width / 2) + width / 4;。
Xy = (int) (Math.random() * height / 2) + height / 4;。
for (i = 0; i < patch; i++) {。
Ex[i] = (int) (Math.random() * energy) - energy / 2;。
Ey[i] = (int) (Math.random() * energy * 7 / 8) - energy / 8;。
public void start() {。
t = 0;
sleep = false;
public void show(Graphics g) {。
if (!sleep) 。
if (t < length) {。
int i, c;
double s;
Color color;
c = (int) (random.nextDouble() * 64) - 32 + Red;。
if (c >= 0 && c < 256)。
Red = c;
c = (int) (random.nextDouble() * 64) - 32 + Blue;。
if (c >= 0 && c < 256)。
Blue = c;
c = (int) (random.nextDouble() * 64) - 32 + Green;。
if (c >= 0 && c < 256)。
Green = c;
color = new Color(Red, Blue, Green);。
for (i = 0; i < patch; i++) {。
s = (double) t / 100;。
x = (int) (Ex[i] * s);。
y = (int) (Ey[i] * s - G * s * s);。
g.setColor(color);。
g.drawLine(Xx + x, Xy - y, Xx + x, Xy - y);。
if (t >= length / 2) {。
int j;
for (j = 0; j < 2; j++) {。
s = (double) ((t - length / 2) * 2 + j) / 100;。
x = (int) (Ex[i] * s);。
y = (int) (Ey[i] * s - G * s * s);。
g.setColor(Color.black);。
g.drawLine(Xx + x, Xy - y, Xx + x, Xy - y);。
t++;
} else {
sleep = true;
常用的编程语言。
编程语言一:C语言
C语言是世界上最流行、使用最广泛的高级程序设计语言之一。在操作系统和系统使用程序以及需要对硬件进行操作的场合,用C语言明显优于其它高级语言,许多大型应用软件都是用C语言编写的。
编程语言二:java
Java是一种可以撰写跨平台应用软件的面向对象的程序设计语言,是由Sun Microsystems公司于1995年5月推出的Java程序设计语言和Java平台(即JavaSE, JavaEE, JavaME)的总称。
编程语言三:c++
C++这个词在中国大陆的程序员圈子中通常被读做“C加加”,而西方的程序员通常读做“C plus plus" , "CPP”。 它是一种使用非常广泛的计算机编程语言。C++是一种静态数据类型检查的、支持多重编程范式的通用程序设计语言。
美国睡眠糖Sleepwell有副作用。
褪黑素是一种诱导自然睡眠的体内激素,它通过调节人的自然睡眠而克服睡眠障碍,提高睡眠质量。它与其他安眠药的最大区别在于,褪黑素无成瘾性,无明显副作用。
晚上睡前口服1-2片(约含褪黑素1.5-3mg),一般二三十分钟内就能产生睡意,而早晨天亮后褪黑素自动失去效能,起床后也不会有疲倦困顿醒不过来的感觉。
调整昼夜节律的方法:
褪黑素的分泌是有昼夜节律的。夜幕降临后,光刺激减弱,松果体合成褪黑素的酶类活性增强,体内褪黑素的分泌水平也相应增高,在凌晨2-3点达到高峰。夜间褪黑素水平的高低直接影响到睡眠的质量。随着年龄的增长,松果体萎缩直至钙化。
造成生物钟的节律性减弱或消失,特别是35岁以后,体内自身分泌的褪黑素明显下降,平均每10年降低10-15%,导致睡眠紊乱以及一系列功能失调,而褪黑素水平降低、睡眠减少是人类脑衰老的重要标志之一。
sleepnomore上海一年有三次演出,分别是4月25日至4月30日,7月11日至7月16日,10月3日至10月8日。每次演出持续六天,每天有两场演出,每场演出持续约90分钟,每次演出有不同的演员,每次演出都会有新的惊喜。sleepnomore上海演出的地点是上海新艺术中心,演出的内容是一部结合了舞台剧、悬疑小说、恐怖电影和视觉艺术的多媒体作品。
四会A
accountant会计
active积极的;活跃的
actor男演员
actress 女演员
and和
angry生气的
answer the phone接电话。
apple苹果
Apr.四月 (缩写)
aren’t = are not。
are是
artist 画家
at about…?…?怎么样。
at在…点钟
Aug. 八月(缩写)
bag包
banana 香蕉
bathroom卫生间
because因为
bedroom 卧室
bed床
beef牛肉
behind在……后边
best最;极
bigger(体型) 更大的
big大的
bike自行车
birthday生日
blue 蓝色的
board 写字板
boat 小船
book 书
bored无聊的,烦人的
boy男孩
bread面包
bridge桥
brother兄弟
building 建筑物
but 但是
buy 购买
buy—bought 买
by 经…;乘…
can’t = can not。
cat 猫
catch butterfly捉蝴蝶。
chair椅子
chicken鸡肉
Chinese 语文
Chinese 中文,汉语
cinema电影院
class 课程
classroom教室
clean the bedroom打扫卧室。
clean the room打扫房间。
clean—cleaned打扫。
cleaner 清洁工
clean干净的
climb mountains爬山。
climb—climbed 爬。
climb往上爬
closet壁橱;衣橱
clothes衣服
cloud云;云彩
cold 寒冷的
collect leaves收集树叶。
collect stamps集邮(ing形式:collecting stamps)。
colour 颜色
come from来自…;从…来。
comic book 漫画书
computer 计算机
cook dinner做饭
cook the meals做饭。
cool 凉爽的
count insects数昆虫。
curtain窗帘
dance—danced 跳舞。
date日期
day天;日子
Dec. 十二月(缩写)
desk课桌;书桌
dive跳水(ing形式:diving)。
do an experiment做实验。
do homework 做作业。
do morning exercises晨练。
do the dishes 洗碗碟。
doctor医生
do—did
does
doesn’t = does not。
dog 狗
don’t =do not
door门
draw pictures画画。
dress 连衣裙
drink water喝水
driver司机
duck 鸭子
eat breakfast吃早饭。
eat dinner吃晚饭
eat—ate吃
eggplant 茄子
egg蛋
eight 八
elephant大象
eleven十一
end table床头柜
engineer工程师
English英语
evening夜晚;晚上
excited兴奋的
fall秋天
fan风扇
farmer农民
father父亲;爸爸
favourite特别喜爱的
Feb.二月(缩写)
fifteen 十五
fight打架
fish 鱼
fish鱼
five 五
floor 地板
flower花
fly kites放风筝
fly飞
foot 脚
football 足球
forest 森林
for为;给 T-shirt T恤衫。
fresh 新鲜的
小发猫(Fri.)星期五
friend朋友
fruit 水果
funny 滑稽可笑的
get to 到达
get up起床
get—got 到达
girl女孩
go fishing—went fishing去钓鱼。
go hiking—went hiking 去郊游。
go hiking去远足
go ice-skating—went ice-skating 去滑冰。
go shopping购物;买东西。
go skiing—went skiing 去滑雪。
go swimming—went swimming去游泳。
go to school 上学。
go 去(第三人称单数goes)。
good 好的
go—went去
grandpa爷爷;外公
grape葡萄
grass 草
green beans青豆
green 绿色的
happy高兴的
have a cold感冒
have a fever 发烧。
have a headache 头疼。
have a picnic举行野餐。
have a sore throat喉咙疼。
have a toothache 牙疼。
have English class上英语课。
have—had
have有;吃
he’s = he is
heavier 更重的
her她的
hobby 爱好
home家
honey蜂蜜
horse 马
hospital医院
house 房子;住宅
how many多少
how much多少钱
how 怎样
how怎么,如何
hurt疼痛
in 在……里面
is 是
it 它
it’s = it is
jacket夹克衫
Jan.一月(缩写)
jeans 牛仔裤
July七月
jump跳
June六月
kangaroo袋鼠
kind和蔼;亲切的
kitchen厨房
lake 湖泊
last 上一个
last仅余的,留在最后的
learn—learned 学习。
left左边
let’s = let us
library 图书馆
like像;喜欢
listen to music听音乐。
live 居住(第三人称单数形式:lives)。
living room客厅;起居室。
long 长的
longer 更长的
lunch 中餐;午餐
make a kites制作风筝。
(ing形式:making a kites)。
make a snowman堆雪人。
make the bed 铺床。
Mar.三月 (缩写)
math 数学
matter事情,麻烦
May五月
milk牛奶
mirror 镜子
mom妈妈
Monday(Mon.)星期一。
mother母亲;妈妈
Mr先生
music音乐
my我的
near 在……旁边
newspaper 报纸
next
next week下周
nine 九
noon中午
nose 鼻子
not 不;不是的
Nov. 十一月 (缩写)
no不;不是
nurse护士
o’clock…点钟
Oct.十月(缩写)
often经常
old 年老的
older 年龄更大的
on 在……上面
one一
on在……时候
orange橙子
P.E. 体育
pants 长裤
park 公园
path 路;小道
pear梨
pencil-case铅笔盒
pencil铅笔
pen钢笔
pick up leaves采摘树。
picture 图画;照片
picture 照片
pig猪
plant trees种树
plant 植物;种植
play chess下棋
play sports进行体育运动。
play the piano弹钢琴。
play the violin 拉小提琴(ing形式:playing the violin)。
play—played玩
play玩;踢
please请
policeman(男)警察
post card 明信片
post office邮局
potato 土豆
present 礼物
quiet安静的;文静的
rabbit兔子
rain 雨;下雨
read a book看书
read books 读书
read 读;看(第三人称单数:reads)。
read—read 读
red 红色的
rice米饭
ride a bike骑自行车(ing形式:riding a bike)。
right 右边
river河流
road公路;大道
room房间
row—rowed 划(船)
ruler尺子
run跑
sad 忧伤的,悲伤的
salesperson 销售员。
salty咸的
Saturday(Sat.)星期六。
school学校
season季节
seed种子
see—saw看见
Sept.九月(缩写)
set the table摆饭桌;摆餐具。
seven七
she’s = she is
shirt 衬衫
shoes 鞋子
short 矮的
short 短的
shorter 更矮的
should 应该
singer歌唱家;歌手
sing—sang 唱歌
sister姐妹
six 六
skate滑冰;滑冰鞋
skirt 裙子
sleep睡觉
sleep睡觉
smaller (体型)更小的。
small小的
smart聪明;巧妙的
snowy下雪的
socks 袜子
soil土壤
sometimes有时候
sore 疼的
sour 酸的
spring春天
sprout苗;芽;嫩芽
straight成直线的
stream (小)河;(小)溪。
strict 严格的
stronger 更强壮的
student学生
study书房
summer夏天
sun 太阳
Sunday(Sun.)星期日。
sunny晴朗的
sweep the floor扫地。
sweet甜的
swim游泳
swim游泳
swing荡;荡秋千
take pictures照相。
take—took 照;拍
taller更高的
tall高的
tasty好吃的;可口的
teach 教(第三人称单数:teaches)。
teacher’s desk讲台。
teacher教师
ten十
that 那;那个
then 然后
then 然后
there那儿;那里
they 它(他、她)们
they’re = they are。
thinner 更瘦的
thin瘦的
thirteen十三
this afternoon今天下午。
this evening今天晚上。
this morning 今天上午。
this这;这个
three三
Thursday(Thu.)星期四。
tired疲劳的,累的
to 向;朝
to 与……相邻
today 今天
tofu豆腐
tomato 西红柿
too 也;太
traffic light交通灯。
traffic rule交通规则。
traffic 交通
train 火车
trash bin垃圾箱
tree树
Tuesday(Tue.)星期二。
turn转弯
TV reporter电视台记者。
twelve十二
twenty二十
two二
uncle叔叔;舅舅
under在……下面
use a computer使用计算机。
usually通常;一般
visit grandparents看望祖父母。
visit—visited 看望。
wait 等待;等
walk走
warm 暖和的
wash the clothes 洗衣服。
wash—washed 洗
watch — watched 看。
watch insects观察昆虫。
watch看(第三人称单数:watches)。
water the flowers浇花。
watermelon 西瓜
water水
Wednesday(Wed.) 星期三。
weekend 周末
weekend周末
we我们
what 什么
when什么时候
where 在哪里;到哪里
where在哪里;到哪里
which哪一个
white 白色的
who’s =who is
why为什么
window窗户
winter冬天
work工作
write a letter写信。
write a report写报告。
write an e-mail写电子邮件。
writer 作家
yellow 黄色的
yes 是;是的
young 年轻的
younger 更年轻的
your你的
小学英语毕业考试复习资料(二)三会单词。
A cousin堂(表)兄弟、 flu流感。
a little有些 cow奶牛 fly(过去式flew)飞。
able能 cucumber黄瓜 fourth第四。
about 关于;大约
after school放学以后。
air 空气
air-conditioner 空调。
always总是
another另一个
any 任何的;所有的
art room绘画教室
at home 在家里
Australia澳大利亚
bank银行
become变成
better更好的
between在……之间
boots靴子
bounce反弹
breakfast 早餐
busy忙碌的
buy购买
cabbage 洋白菜;卷心菜。
call打电话
canteen 食堂
carrot 胡萝卜
chart图表
cheap 便宜的
Children’Center儿童活动中心。
city城市
climber攀登者
cloud 云
cloudy多云的
cm(centimeter)厘米。
colourful 色彩丰富的。
come out露出
company公司
computer room 计算机教室。
country国家
day天
dear亲爱的
deep深的
design设计
dictionary字典;词典。
difference不同;区别。
dinner 晚餐;正餐
do housework 做家务。
down从高到低;向下
drink饮料
drive驾驶
drop液体的珠;滴
each各自;每个
east东
easy简单的
e-card电子卡片
eighth第八
either 也
else其他;另外
empty the trash 倒垃圾。
England英国
English class 英语课。
enjoy从…获得乐趣
even甚至
everyone每个人
every每个;所有的
expensive 昂贵的
factory工厂
fail不及格;失败
fall落下;降下;掉下
far远
feel感觉
feel感觉到;感受到
feet脚(复数)
fifth第五
find寻找;找到
first 第一
flat公寓
fruit stand水果摊
funnier更滑稽的
fun有趣;逗笑
garden 花园
garden花园
get off下车
get up 起床
get得到
go home 回家
go to bed 上床睡觉
go to school 上学。
go to the cinema 去看电影。
goal得分
goat山羊
gym 体育馆
Halloween万圣节之前夕。
hardly几乎没有
have a try 试一试
healthy 健康的;有益健康的。
hear听见;听到
helpful有帮助的;有用的。
hen母鸡
high高的
him他(宾格)
hold on 等一下
holiday 假期
Hong Kong香港
hot 炎热的
however但是
if如果
ill有病的
in front of 在……上面。
interesting有趣的
into进入
jeans 牛仔裤
just do it 就这么干吧。
kg(kilogram)千克;公斤。
kick踢
killer whale虎鲸
know知道
lady女士;小姐;夫人
lamb小羊;羔羊
laugh at因…而发笑
leave(过去式left)
left左边的
library 图书馆
little小的
lobster龙虾
look at 看一看
look for寻找
lovely可爱的;美丽的
lunch 午餐
magazine杂志
make sure核实或查明某事物。
match比赛
mean意思是
medicine药
meet遇见;碰见(某人)
menu菜单
meter米
might可以;能
miss想念
money钱
month月份
Moral Education思想品德课。
motor cycle摩托车
mountain山;山脉
music class 音乐课。
music room音乐教室
must必须
must做出逻辑判断
mutton羊肉
nature park自然公园。
need需要
next 下一个
ninth第九
north北
north北方
off距;离;离开
often 经常
onion洋葱
other其他的;另外的
over there 在那边
over在……上面
own自己的
P.E. class 体育课
pants 长裤
party聚会;晚会
pen pal笔友
pet shop宠物店
play chess 下棋
play with 玩……
playground 操场
police警方;警察部门
pork 猪肉
potato 土豆
pot锅;碗;瓢;盆
prepare准备
pretty 漂亮的;可爱的
principal 校长
put away the clothes 收拾衣服。
put放;位置
rainy 下雨的
rain下雨
read a magazine阅读杂志。
relax放松
remember记住
return送回;归还
right右边的
robot机器人
run 跑;奔跑
same相同的
sandals凉鞋
say说讲
science museum科学博物馆。
seal海豹
second第二
see you later再见。
see看见
send寄;发送
several一些;几个
shark 鲨鱼
sheep绵羊
shine照耀
shoe store鞋店
shoes 鞋子
shop商店
shorts 短裤
show展览
sick有病的;不舒服的
side边
sky天空
slippers拖鞋
sneakers 胶底帆布鞋;网球鞋。
snow雪
so much 很;非常
Social Studies 社会课。
socks袜子
something某事物
soon不久
soon立刻;不久
sound听起来
south南
speak to 和…讲话
sperm whale抹香鲸
squid鱿鱼
start开始
stay在;逗留
still仍然;依旧
supermarket超市
sweater 毛衣
swim(过去式swam)游泳。
take a trip去旅行
talk讲话
teacher’s office 教师办公室。
tell告诉;说
test测试
Thanksgiving 感恩节。
than与…相比较
the Great Wall长城。
theme park主题公园
then那么
thing东西;物
think想;思考
third第三
third第三的
tip有用的小建议;小提示
together一起地
tomato西红柿
tomorrow 明天
tomorrow明天
tongue twister绕口令。
tonight今晚
ton吨
tourist旅行者;旅游者
trip旅行
trunk象鼻
TV reporter电视台记者。
TV room 电视机房
twelfth第十二
twentieth第十二
twin 双胞胎之一
university student 大学生。
up 至;朝向
us 我们(宾格)
vapour 蒸汽;水汽
village 乡村;村庄
wake up 醒;醒来
wash room 卫生间
wash the windows 擦窗户。
way 路;道
weather 天气
week 星期;周
well 好;对;满意的
west 西
win(过去式won)赢
windy 有风的
woods树林
work 工作
worry 烦恼;忧虑
yesterday昨天
写作思路:充足的睡眠会让人精神抖擞,不论是做事还是学习都精力充沛,但是如果睡眠不足就会让人倦怠,对任何事都失去了兴趣。
正文:
Lack of sleep also caused me a lot of sleepiness, which made my academic performance fluctuate up and down. I didn't feel energetic all day and dark circles began to appear.。
睡眠不足对还我造成了许多困挠,它使我的学习成绩上下波动,整天没有精神、黑眼圈也开始冒出来了。
After a few meals, I decided to get more sleep; I began to love sleep, try not to urinate every night, do eye exercises, comfortable their eyes, sleep as soon as possible during the nap。
在挨了几顿批后,我决定好好补充睡眠时间;我开始热爱睡眠,每天晚上尽量不拉小便,好好做眼保健操,舒适自己的眼睛,午睡时尽快入睡。
I know that having enough sleep time is also a kind of enjoyment. But recently I fell in love with reading books before going to bed. It took me more than an hour.。
我知道,拥有充足的睡眠时间,也是一种享受。可是最近我又迷上了在睡前看书,一看就是一个多小时。
Because I went to bed late, my sleep quality dropped sharply, even lower than before. I went back to the time when I became a panda, the time when I yawned in class, the time when I got poor exam results, and the time when I went back to。
由于上床时间本来就晚,这使我的睡眠质量又急速下降,降到比原来还要低,我又回到了那种变成熊猫的时代,又回到了那种上课打哈欠的时代,又回到了那种考试成绩差的时代,又回到了……
One night, my mother told me some philosophical language, advised me to go to bed in the morning at night, reading time before going to bed should be appropriate, not too long. Only by ensuring high-quality sleep, can we have the spirit of class and work the next day.。
一天晚上,妈妈跟我说了一些哲理性语言,劝我晚上早上床,睡前看书时间要适当,不能看太久。只有保障高质量的睡眠第二天我们才能有精神上课、工作等。
So, I began that kind of painful and happy "training": go to bed in the morning at night, read for half an hour at most, do more eye exercises, see more green things, go to bed early and get up early as possible... After several days of "maintenance", my dark circles finally left me again.。
于是,我又开始了那种痛苦并快乐的“训练”:晚上早上床,看书最多看半小时,做更多的眼保健操,多看绿色的东西,尽量早睡早起……经过我几天千磨万击的“保养”我的黑眼圈终于再次离我而去了。
Adequate sleep is not only a kind of enjoyment, but also a way to relax. It is also a guarantee to improve your academic performance. Students, in order to make our performance better, please ensure adequate sleep, less stay up late, thank you.。
充足的睡眠不仅是一种享受,也是一种放松的方法,它还是提高你学习成绩的保障。同学们,为了让我们的成绩更好,请大家保证充足的睡眠,少熬夜,谢谢。