Ⅰ 我們老師讓我們用python做一個課程設計 我想做一個成績管理器 可是好
你要轉成asp的帶後台。 首先要安裝iis確保能運行asp文件, 關於iis還有設置更目錄還需要你自己去學! 能夠運行asp文件的情況下你要求的頁面自己改圖片文字 就看你是否希望從資料庫中調用這一步會涉及更多的東西 我就說說不用資料庫的方法
Ⅱ 想用Python做個管理系統,不知道要學些什麼,具體要求如下
你這個需求還缺少一些關鍵的內容。
界面是需要PC應用界面,還是網頁、APP。
是否需要資料庫,需要的話,區域網連接,還是需要互聯網連接。
Ⅲ python課程設計要求400行代碼
那你寫print(1)一直寫到print(400)吧
Ⅳ python如何編一個投票系統
LI=['張三','李四','劉五']
definputs(prompt,selectlist,eof='EOF'):
whileTrue:
choice=raw_input(prompt)
ifchoice==eof:
break
elifchoiceinselectlist:
yieldchoice
else:
print"onlyin%s"%selectlist
collects=map(None,inputs("投票",LI,eof='投票結束'))
#bydict
counter={}
fornameincollects:
counter[name]=counter.get(name,0)+1
forname,cinsorted(counter.items(),key=lambdax:x[1],reverse=True):
printname,c
#bycollections.Counter
importcollections
counter=collections.Counter(collects)
forname,cincounter.most_common(10):
printname,c
Ⅳ python新手求助 寫一個投票的代碼 def vote() 有三種,yes,no,abstain
defvote(stra):
yesstr=['yes','y']
nostr=['no','n']
abstainedstr=['abstained','a']
count=0
yescount=0
stra=stra.replace(',','')
foriinstra.split():
lowerstr=i.lower()
iflowerstrinyesstr:
yescount+=1
count+=1
eliflowerstrinnostr:
count+=1
ifyescount==count:
return'proposalpassesunanimously'
ifyescount*1.0/count>=2.0/3.0:
return''
ifyescount*1.0/count>=0.5:
return''
return'proposalfails'
if__name__=='__main__':
stra=raw_input('Entertheyes,no,:
')
printvote(stra)
Ⅵ 如何用Python來做一個投票app
django的教程就是一個投票的例子,如果是要做網頁版的,可以參考下,很不錯,https://docs.djangoproject.com/en/1.6/intro/tutorial01/
可以看下鏈接
Ⅶ Python面向對象程序設計題,設計一個選課系統,要求如下:
你這完全是一個小軟體拉,想著是沒有人會直接回源碼的吧,且還是面向對象的.用tkinter,還是pyqt等,都沒有說.
Ⅷ 用python和django做一個投票網站
我留個記錄,看誰會這么好心有現成的項目,我也想參考參考
Ⅸ c語言投票系統課程設計
/*Note:YourchoiceisCIDE*/#include"stdio.h"#include#include"conio.h"#include#includevoidmain(){voidadm1(),adm2(),build(),huan(),borrow(),dele();adm1();}voidadm1(){FILE*fp,*p;charadp[20],password[20];inti,n=0;textbackground(2);clrscr();gotoxy(25,12);fp=fopen("pass","r");if(fp==NULL)printf("inputpassword:");for(;;){window(42,12,53,12);textbackground(0);clrscr();gets(adp);for(i=0;adp[i]!='\0';i++);fgets(password,i+1,fp);gotoxy(55,12);if(strcmp(password,adp)==0)else{n++;window(55,12,60,12);clrscr();gotoxy(55,12);cprintf("error");for(i=0;i=6);for(k=i;k<i+n;k++){printf("\nbook%d:",k+1);scanf("%s",book[k]);}for(k=0;k<i+n;k++)fprintf(f,"%s\n",book[k]);fputc('\0',f);printf("success");fclose(f);}voiddele(){FILE*fp,*f;charid[20],a[4][20],c,b[5][50];inti=0,j=0,k;window(1,1,80,25);clrscr();printf("InputIDnumber:");scanf("%s",id);fp=fopen(id,"r");if(fp==NULL)elsewhile(!feof(fp))printf("\nname:%s",a[0]);printf("\nID:%s",a[1]);printf("\nsex:%s",a[2]);printf("\ngrad:%s",a[3]);f=fopen(a[0],"r");if(f==NULL);else{while(!feof(f))for(k=0;k<j-1;k++)printf("\nbook%d:%s",k+1,b[k]);}printf("\nDoyouwanttodelete?(Y/N):");c=getch();fclose(fp);fclose(f);if(c=='y')if(c=='n')adm2();}