Code Monkey home page Code Monkey logo

computersystem's Introduction

본인의 과제명 작성

학과 학번 성명
정보컴퓨터공학부 201424559 황보규민

프로젝트 개요

파이썬으로 공공데이터를 활용한 휴게소종합정보 제공 서비스 발표자료

  1. input창에 자신이 원하는 고속도로 입력
  2. 정보 출력

사용한 공공데이터

데이터보기

소스

df = pd.read_csv('3.csv',sep=",",dtype='unicode',encoding = 'utf-8')

df2 = df[["휴게소명","도로종류","매점유무"]]

window=tkinter.Tk()

def find(event): strg = str(entry.get()) df4=df[df['휴게소명']==strg] df3 = df4[['휴게소명','도로종류','도로노선번호','도로노선명','도로노선방향','도로점용면적']] df5 = df4[['위도','경도','휴게소종류','휴게소운영시작시각','휴게소운영종료시각']] df6 = df4[['주차면수','경정비가능여부','주유소유무','LPG충전소유무','전기차충전소유무','버스환승가능여부']] df7 = df4[['쉼터유무','화장실유무','약국유무','수유실유무','매점유무','음식점유무']] df8 = df4[['기타편의시설','휴게소대표음식명','휴게소전화번호','데이터기준일자','제공기관코드','제공기관명']]

str(df3)
print(df3)

label.config(text=df3)
label2.config(text=df5)
label3.config(text=df6)
label4.config(text=df7)
label5.config(text=df8)

def countUP(): global count count += 1 label.config(text=str(count)) def calc(event): label.config(text="결과="+str(eval(entry.get())))

window.title("전국 고속도로정보") window.geometry("900x500+100+100") window.resizable(False, True)

font = tkinter.font.Font(family="맑은 고딕", size=20 ) font2 = tkinter.font.Font(family="맑은 고딕", size=10)

label =tkinter.Label(window,text="컴퓨터시스템입문 기말과제",relief="solid",font=font) label.pack() label =tkinter.Label(window,text="201424559 황보규민",width=640,anchor="e") label.pack() label =tkinter.Label(window,text="고속도로이름 입력.",height=4,width=640,anchor="s",font=font2, fg="blue" ) label.pack()

entry=tkinter.Entry(window) entry.bind("",find) entry.pack()

count =0

label = tkinter.Label(window,text="") label.pack()

label2 = tkinter.Label(window,text="") label2.pack()

label3 = tkinter.Label(window,text="") label3.pack()

label4 = tkinter.Label(window,text="") label4.pack()

label5 = tkinter.Label(window,text="") label5.pack()

window.mainloop()

##infile = codecs.open('final2.csv','r',encoding='utf-8')

##for line in infile:

##infile.close()

computersystem's People

Contributors

ghkdqhrbals avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.