新西兰急~~有沒有學IT的小哥哥能幫我寫個NS diagram


在新西兰



10:00 要交考試了 誰能很快幫我寫一下NS diagram  小妹感激不盡啊
很簡單   發到我信箱wechat 都可以
hahahavanessa
[email protected]
天維的盤板有點怪 給我email 發給你

import sysimport pygamefrom Content import pygbuttonfrom pygame.locals import *pygame.init()#Initialize variablesstartBlue =0,0,255skyBlue = 50,120,255grassGreen = 75,180,75treeGreen = 0,100,0treeBrown = 100,100,0TRANSPARENT = 0,255,255black= 0,0,0carColour= 255,0,0building= 173,216,230Silver=192,192,192White=255,255,255carFront=250,128,114buildTop=220,220,220wind=245,245,245buildBlue=70,130,180#small buildingbridge=128,128,128#Setup the surfaceswindowSurface = pygame.display.set_mode( (1200,800))pygame.display.set_caption("Future city")backgroundSurface = pygame.Surface( (1200,800) )#Give the windowSurface an initial colourpygame.draw.rect( backgroundSurface, startBlue, (0, 0, 1200, 800) )#Draw Background on backgroundSurfacepygame.draw.rect( backgroundSurface, skyBlue , (0, 0, 1200, 600) )  #Skypygame.draw.rect( backgroundSurface, grassGreen , (0, 600, 1200, 200) ) #Ground#Draw Tree on treeSurfacetreeSurface = pygame.Surface( (100, 250) )treeSurface.set_colorkey(TRANSPARENT)pygame.draw.rect( treeSurface, TRANSPARENT , (0, 0, 100, 250) )pygame.draw.polygon(treeSurface, treeGreen, [(55,10),(15,100),(95,100)],0)pygame.draw.circle(treeSurface, treeGreen, (55,100), 40, 0)pygame.draw.circle(treeSurface, treeGreen, (55,150), 40, 0)pygame.draw.rect( treeSurface, treeBrown , (50, 190, 10, 60) )# CarcarSurface = pygame.Surface((200, 250))carSurface.set_colorkey(TRANSPARENT)pygame.draw.rect( carSurface, skyBlue , (0, 0, 200, 250))pygame.draw.ellipse( carSurface, carColour , (1, 100, 180, 60)) #car bottompygame.draw.circle( carSurface, carColour , (160,115), 35, 0) #car toppygame.draw.rect( carSurface, black , (160, 55, 2, 25))#antipygame.draw.ellipse(carSurface, White,(30, 110, 50, 20))#ellipse window#pygame.draw.circle(carSurface, Silver, (50,170), 20, 0)#pygame.draw.circle(carSurface, Silver, (150,170), 20, 0)# BuildingbuildingSurface = pygame.Surface((100, 600))buildingSurface.set_colorkey(TRANSPARENT)pygame.draw.rect( buildingSurface, TRANSPARENT , (0, 0, 100, 600))pygame.draw.rect( buildingSurface, building , (0, 50, 100, 550))#main buildingpygame.draw.polygon(buildingSurface, buildTop,[(0,0),(0,50),(100,50)],0)#trianglebuildingSurface2 = pygame.Surface((150, 700))buildingSurface2.set_colorkey(TRANSPARENT)pygame.draw.rect( buildingSurface2, TRANSPARENT , (0, 0, 150, 700))pygame.draw.rect( buildingSurface2, building , (0, 50, 150, 650))#main buildingpygame.draw.polygon(buildingSurface2, buildTop,[(150,0),(0,50),(150,50)],0)#triangle# bridgebridgeSurface = pygame.Surface((170, 40))bridgeSurface.set_colorkey(TRANSPARENT)pygame.draw.rect( bridgeSurface, TRANSPARENT , (0, 0, 170, 40))pygame.draw.rect( bridgeSurface, bridge , (0, 0, 170, 40))#bridge gray / grey# Small BuildingsmallbuildSurface = pygame.Surface((400, 300))smallbuildSurface.set_colorkey(TRANSPARENT)pygame.draw.rect( smallbuildSurface, TRANSPARENT , (0, 0, 400, 300))pygame.draw.circle(smallbuildSurface, buildBlue, (80,100), 80, 0)pygame.draw.circle(smallbuildSurface, buildBlue, (320,100), 80, 0)pygame.draw.rect(smallbuildSurface, bridge, (160, 80, 80, 40))pygame.draw.rect(smallbuildSurface, Silver, (160, 120, 20, 180))#pillarpygame.draw.rect(smallbuildSurface, Silver, (220, 120, 20, 180))#pillar# windwindSurface = pygame.Surface((200, 200))windSurface.set_colorkey(TRANSPARENT)pygame.draw.rect( windSurface, skyBlue , (0, 0, 200, 200))pygame.draw.ellipse(windSurface, wind,(1, 50, 100, 78))#ellipse wind white smokepygame.draw.ellipse(windSurface, wind,(40, 90, 100, 78))#ellipse windpygame.draw.ellipse(windSurface, wind,(80, 120, 100, 78))#ellipse windpygame.draw.ellipse(windSurface, wind,(90, 90, 100, 78))#ellipse windpygame.draw.ellipse(windSurface, wind,(30, 20, 100, 78))#ellipse windpygame.draw.ellipse(windSurface, wind,(50, 110, 100, 78))#ellipse windpygame.draw.ellipse(windSurface, wind,(60, 10, 100, 78))#ellipse windpygame.draw.ellipse(windSurface, wind,(70, 60, 100, 70))#ellipse wind#Create buttonsbuttonStart = pygbutton.PygButton((10, 10, 150, 30), "START")buttonExit= pygbutton.PygButton((140, 10, 100, 30), "EXIT")#Event Loopfinish=Falseplay = False xCar = 600xWind = 980xCarJump = -1xWindJump = -1startbuttonFlag=Falsewhile finish == False:                #Check Events    for event in pygame.event.get():        if event.type == pygame.QUIT:            finish = True        if "up" in buttonExit.handleEvent(event):            finish = True        if "up" in buttonStart.handleEvent(event):            startbuttonFlag = True            play = True            windowSurface.blit(backgroundSurface,(0,0))            windowSurface.blit(buildingSurface, (30, 190))            windowSurface.blit(buildingSurface2, (300, 90))            windowSurface.blit(bridgeSurface, (130, 300))                        windowSurface.blit(smallbuildSurface, (500, 490))            for count in range(0,2):                windowSurface.blit(treeSurface, (1100 - 100*count, 540) )            if play == True and startbuttonFlag==True:     ####### Move Car and Wind ########        xCar = xCar + xCarJump        if xCar <= 500:            xCarJump = -xCarJump                xWind = xWind + xWindJump        if xWind <= 780:            xWindJump = -xWindJump                windowSurface.blit(carSurface, (xCar,200))        windowSurface.blit(windSurface, (xWind, 100))        #pygame.display.update()         if startbuttonFlag==False :        #Update Screen        windowSurface.blit(backgroundSurface,(0,0))                windowSurface.blit(buildingSurface, (30, 190))        windowSurface.blit(buildingSurface2, (300, 90))        windowSurface.blit(bridgeSurface, (130, 300))            windowSurface.blit(smallbuildSurface, (500, 490))        for count in range(0,2):            windowSurface.blit(treeSurface, (1100 - 100*count, 540) )        buttonStart.draw(windowSurface)    buttonExit.draw(windowSurface)      pygame.display.update()#Quitpygame.quit()sys.exit()

评论
我汗。。。。。。这乱码怎么看?你不先排一下版吗?

评论
FML观光团报道


评论
我表示楼上的是干IT的小哥哥

评论

老白出马,一个顶两

评论


10点都已经过了, LZ这考试给的多长时间啊 lol

评论
稍微可以看一看了,原来是画动画。坐等Python高手进。

import sys
import pygame from Content
import pygbutton from pygame.locals
import *

pygame.init()
#Initialize
variables
startBlue =0,0,255
skyBlue = 50,120,255
grassGreen = 75,180,75
treeGreen = 0,100,0
treeBrown = 100,100,0
TRANSPARENT = 0,255,255
black= 0,0,0
carColour= 255,0,0
building= 173,216,230
Silver=192,192,192
White=255,255,255
carFront=250,128,114
buildTop=220,220,220
wind=245,245,245
buildBlue=70,130,180
#small buildingbridge=128,128,128
#Setup the surfaces
windowSurface = pygame.display.set_mode( (1200,800))
pygame.display.set_caption("Future city")
backgroundSurface = pygame.Surface( (1200,800) )
#Give the windowSurface an initial
colourpygame.draw.rect( backgroundSurface, startBlue, (0, 0, 1200, 800) )
#Draw Background on backgroundSurface
pygame.draw.rect( backgroundSurface, skyBlue , (0, 0, 1200, 600) )  
#Skypygame.draw.rect( backgroundSurface, grassGreen , (0, 600, 1200, 200) )
#Ground
#Draw Tree on treeSurface
treeSurface = pygame.Surface( (100, 250) )
treeSurface.set_colorkey(TRANSPARENT)
pygame.draw.rect( treeSurface, TRANSPARENT , (0, 0, 100, 250) )
pygame.draw.polygon(treeSurface, treeGreen, [(55,10),(15,100),(95,100)],0)
pygame.draw.circle(treeSurface, treeGreen, (55,100), 40, 0)
pygame.draw.circle(treeSurface, treeGreen, (55,150), 40, 0)
pygame.draw.rect( treeSurface, treeBrown , (50, 190, 10, 60) )
#
CarcarSurface = pygame.Surface((200, 250))
carSurface.set_colorkey(TRANSPARENT)
pygame.draw.rect( carSurface, skyBlue , (0, 0, 200, 250))
pygame.draw.ellipse( carSurface, carColour , (1, 100, 180, 60))
#car
bottompygame.draw.circle( carSurface, carColour , (160,115), 35, 0)
#car
toppygame.draw.rect( carSurface, black , (160, 55, 2, 25))
#anti
pygame.draw.ellipse(carSurface, White,(30, 110, 50, 20))
#ellipse window
#
pygame.draw.circle(carSurface, Silver, (50,170), 20, 0)
#
pygame.draw.circle(carSurface, Silver, (150,170), 20, 0)
#
BuildingbuildingSurface = pygame.Surface((100, 600))
buildingSurface.set_colorkey(TRANSPARENT)
pygame.draw.rect( buildingSurface, TRANSPARENT , (0, 0, 100, 600))
pygame.draw.rect( buildingSurface, building , (0, 50, 100, 550))
#main
buildingpygame.draw.polygon(buildingSurface, buildTop,[(0,0),(0,50),(100,50)],0)
#
trianglebuildingSurface2 = pygame.Surface((150, 700))
buildingSurface2.set_colorkey(TRANSPARENT)
pygame.draw.rect( buildingSurface2, TRANSPARENT , (0, 0, 150, 700))
pygame.draw.rect( buildingSurface2, building , (0, 50, 150, 650))
#main
buildingpygame.draw.polygon(buildingSurface2, buildTop,[(150,0),(0,50),(150,50)],0)
#triangle#
bridgebridgeSurface = pygame.Surface((170, 40))
bridgeSurface.set_colorkey(TRANSPARENT)
pygame.draw.rect( bridgeSurface, TRANSPARENT , (0, 0, 170, 40))
pygame.draw.rect( bridgeSurface, bridge , (0, 0, 170, 40))
#bridge gray / grey
# Small Building
smallbuildSurface = pygame.Surface((400, 300))
smallbuildSurface.set_colorkey(TRANSPARENT)
pygame.draw.rect( smallbuildSurface, TRANSPARENT , (0, 0, 400, 300))
pygame.draw.circle(smallbuildSurface, buildBlue, (80,100), 80, 0)
pygame.draw.circle(smallbuildSurface, buildBlue, (320,100), 80, 0)
pygame.draw.rect(smallbuildSurface, bridge, (160, 80, 80, 40))
pygame.draw.rect(smallbuildSurface, Silver, (160, 120, 20, 180))
#pillar
pygame.draw.rect(smallbuildSurface, Silver, (220, 120, 20, 180))
#pillar#
windwindSurface = pygame.Surface((200, 200))
windSurface.set_colorkey(TRANSPARENT)
pygame.draw.rect( windSurface, skyBlue , (0, 0, 200, 200))
pygame.draw.ellipse(windSurface, wind,(1, 50, 100, 78))
#ellipse wind white smoke
pygame.draw.ellipse(windSurface, wind,(40, 90, 100, 78))
#ellipse wind
pygame.draw.ellipse(windSurface, wind,(80, 120, 100, 78))
#ellipse wind
pygame.draw.ellipse(windSurface, wind,(90, 90, 100, 78))
#ellipse wind
pygame.draw.ellipse(windSurface, wind,(30, 20, 100, 78))
#ellipse wind
pygame.draw.ellipse(windSurface, wind,(50, 110, 100, 78))
#ellipse wind
pygame.draw.ellipse(windSurface, wind,(60, 10, 100, 78))
#ellipse wind
pygame.draw.ellipse(windSurface, wind,(70, 60, 100, 70))
#ellipse wind
#Create buttons
buttonStart = pygbutton.PygButton((10, 10, 150, 30), "START")
buttonExit= pygbutton.PygButton((140, 10, 100, 30), "EXIT")
#Event Loop
finish=False
play = False
xCar = 600
xWind = 980
xCarJump = -1
xWindJump = -1
startbuttonFlag=False
while finish == False:               
#Check Events   
for event in pygame.event.get():        
if event.type == pygame.QUIT:            
finish = True        
if "up" in buttonExit.handleEvent(event):            
finish = True        
if "up" in buttonStart.handleEvent(event):            
startbuttonFlag = True            
play = True            
windowSurface.blit(backgroundSurface,(0,0))            
windowSurface.blit(buildingSurface, (30, 190))            
windowSurface.blit(buildingSurface2, (300, 90))            
windowSurface.blit(bridgeSurface, (130, 300))                        
windowSurface.blit(smallbuildSurface, (500, 490))            
for count in range(0,2):               
windowSurface.blit(treeSurface, (1100 - 100*count, 540) )            
if play == True and startbuttonFlag==True:     
####### Move Car and Wind ########        
xCar = xCar + xCarJump        
if xCar <= 500:            
xCarJump = -xCarJump               
xWind = xWind + xWindJump        
if xWind <= 780:            
xWindJump = -xWindJump               
windowSurface.blit(carSurface, (xCar,200))        
windowSurface.blit(windSurface, (xWind, 100))        
#pygame.display.update()         
if startbuttonFlag==False :        
#Update Screen        
windowSurface.blit(backgroundSurface,(0,0))               
windowSurface.blit(buildingSurface, (30, 190))        
windowSurface.blit(buildingSurface2, (300, 90))        
windowSurface.blit(bridgeSurface, (130, 300))            
windowSurface.blit(smallbuildSurface, (500, 490))        
for count in range(0,2):            
windowSurface.blit(treeSurface, (1100 - 100*count, 540)
buttonStart.draw(windowSurface)   
buttonExit.draw(windowSurface)      
pygame.display.update()
#Quit
pygame.quit()
sys.exit()

评论

你真厉害,竟然还把代码格式化。。。。

评论
妹子这颜值

一堆大叔叔小哥哥争相帮忙



评论

对的,这颜值做IT可惜了,辐射大啊。

评论

跟哪个高富帅看对眼了
还用愁毕业么


评论

叔叔来了,,,妹子们快来吧,,,,我都懂我很厉害的

评论

抠脚大汉

快去拯救那个美女

评论

不不不,,我不喜欢这个妹子,我比较喜欢你

评论

眼瞎了
要赶紧去治

还有每天记得吃药
吃完了记得看看瓶子
吃错了没



评论
How about no

评论
FML观光团报道


评论
希望你考得不错。。。



                     

评论
FML观光团报道看妹子~~~


评论
FML观光团。。。。。。

评论
FML观光团报道

新西兰移民留学

关于rv转pr

新西兰关于rv转pr, 请问副申请需要和主申请一样要求满足居住要求等等一系列吗?这官网上也没说清楚啊。以前听人说副申请只需来新西兰一趟激活就行。请问有类似情况的朋友且已经申请过 ...

新西兰移民留学

初中短期暑假课

新西兰有学校可以接受从国内暑假7,8月来新西兰上一个月的课吗?短期课,谢谢 评论 我们语言学校有对接的中小学插班微留学,感兴趣请加linxiao1914 评论 北岸语言学校有推8月为期3周微留学 ...

新西兰移民留学

Unitec 留学生出席率

新西兰那个unitec 说留学生的出席率要有100%,有人有经验吗?我以前在UoA是没有人问出席率的,unitec出席率不足真的会影响下次签证申请吗?还是他们只是吓吓你而已?求帮忙! 有人有unitec 的 ...

新西兰移民留学

五年多次旅游签

新西兰各位大侠 有个问题想咨询下 老人现在是5年多次 旅游签,每次6个月,目前在境内。 现在有两个说法,1. 每12个月最多6个月。如果想要多待就再提交申请旅游签,可以续3个月,同时之前 ...

新西兰移民留学

新西兰签证费用大幅上涨

新西兰申请新西兰签证费用将大幅度上涨 新西兰政府今天宣布,将于 2024 年10 月 1 日起提高签证费用(包括费用和征费)。 自10月1日起,新的签证收费将设定在适当水平,以收回办理签证的 ...

新西兰移民留学

有几件Mt Albert Grammar 的校服 出售

新西兰Pick up in Sandringham, 也可以送给您!都挺新的,穿了还不到一年。需要更多照片请加微信DiDiDa1613, 有的照片传不上来。也可以联系电话0221082596. 衬衫 12号,$35 裙子 10号,$60 毛衣 Large, $70 ...

新西兰移民留学

关于新西兰入籍

新西兰请问 新西兰入籍 如果一共在新西兰已住满1350天,且这5年中每年至少待满了240天。 那么,从第5年的第一天算起,当只要一旦待够240天,也就是说第5年第8个月后,是否就可以提交入籍 ...

新西兰移民留学

插班一个月

新西兰你们这边有提供国内初中生暑假来新西兰上插班一个月的学校吗?谢谢 评论 插班一个月?体验生活? 评论 看来又一个想做游学的了~ 评论 我们什么学校都有,只要你有钱 评论 小学还 ...

新西兰移民留学

大学短期课程

新西兰国内客人想来这边体验一下大学课程,短期的1-2 周。或者零散的几天课程都可以。有哪位大神有资源可以合作吗? 0220506606. 评论 大学短期几天参加下课程真没有 要不读几周的语言?也 ...

新西兰移民留学

给留学生提供免费住宿

新西兰可以提供奥克兰中区舒适的免费住宿,交换前提是每天清理卫生一小时和辅导两个孩子学习一小时。 理科生女孩最好,爱干净,喜欢宠物 联系微信13810811159 评论 按新西兰最低工资标准 ...

新西兰移民留学

2024年2月份开学的看过来

新西兰我本人是这个时间开学的,女生,想建个群咱们可以一起讨论租房、学习以及平时有时间一起出去游玩,感兴趣的伙伴们看过来,我微信fq135791113,加时麻烦备注下自己开学时间和专业哦 ...

新西兰移民留学

求职必看(少***)倒霉路店

新西兰Hi!我是一名中国留学生!我在中文论坛网上看到了少***火锅店的招聘信息,在两三小时的无薪使用后我被manager录取了。应聘要求是在试用期给我远远低于新西兰法定最低工资现金:1 ...