传说中规范的爱衡穗穗情代码族梁(2010-11-10 21:37:36)
转载
标签:it
private final static DEPOSIT = 100000
private final static FELLING = 8
public void love(boy, girl) {
Boolean isMarried = false
if(boy.有房() &&boy.有车()) {
doMarry(boy, girl)
isMarried = true
} else if(girl.愿意等()) {
while(!(boy.赚钱 >DEPOSIT &&girl.感情 >FELLING)) {
for(int day=1day <=365day++) {
if( day == 情人节 ) {
if(boy.givegirl(玫瑰)) {
girl.感情++
} else {
girl.感情--
}
}
if(day == girl.生日) {
if( boy.givegirl(玫瑰) )
{
girl.感情++
}
else {
girl.感咐卜情--
boy.拼命赚钱()
}
}
}
if(boy.有房() &&boy.有车()) {
doMarry(boy, girl)
isMarried = true
break
}
年龄++
girl.感情--
}
}
if(!IsMarried) {
girl.goto(another_boy)
}
private void doMarry(boy, girl) {
boy.set(nothing)
girl.嫁给(boy)
}
程序员的表白代码
第一条语言:Java代码翻译:直到亏判死之前,每天爱你多一点代码颂盯:while(lifeend){love++}
第销樱改二条语言:C语言代码翻译:IcannotsayHellototheWorldwithoutu.代码:#incldestdio.hintmain(){printf(HelloWorldn)retrn0}//IcannotsayHellototheWorldwithoutu.
第三条语言:python代码翻译:山无陵,江水为竭,冬雷震震,夏雨雪,天地合,乃敢与君绝!代码:if(mountain.arris==None):if(river.water==None):if(winter.thunder==True):if(summer.snow==True):if(sky.height==ground.height):i.withyou=Falseelse:i.withyou=True.
第四条语言:Erlang代码代码翻译:深圳相遇,至死不渝代码:-module(you_and_me).-export([start/1]).-record(person,{name,address,status}).start(Name)-one_world(Name).one_world(Name)keep_to_love_you(Person).say_goodbye(Person)-io:format(~p:seeyounextworld!~n,[Person#person.name]).see_you_next_world(Name)-one_world(Name).
第五条语言:Java语言代码翻译:爱你到天荒地老代码:while(!world.destroy){System.out.println(iloveyou)}
import turtlet = turtle.Pen()
turtle.bgcolor("black")
my_name=turtle.textinput("请输入你想表白的话","衫汪尺你的表白?")
colors=["red","yellow","purple","或高blue"]
for x in range(100):
t.pencolor(colors[x%4])
陵慎t.penup()
t.forward(x*4)
t.pendown()
t.write(my_name,font=("Arial",int((x+4)/4),"bold"))
t.left(92)
print("####结束####")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)