pt13 根据叶子判断四季


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if (leaf.color==green)    
spring comes;

if (leaf.temperture>=36℃)
summer comes;

if (leaf.color==yellow)
autumn comes;

only (
leaf_1 is hanging on a tree &&
leaf_2 is dancing in the wind &&
leaf_3 is lying on the grass &&
leaf_4 is sleeping near a garbage bin &&

leaf_n is shivering and getting cold)
then winter comes;

*以上代码为伪代码,仅供娱乐