전체 글

· Csharp
Image 컴포넌트에 이미지를 넣기위해서는, 컴포넌트의 Source안에 BitmapImage를 생성해야 함 이미지 파일의 경로를 나타내기 위해 Uri를 사용함 Setup 파일을 사용하는데 여러 방법이 있는데, 로컬 파일 사용 (절대 경로) 로컬 파일 사용 (상대 경로) 프로젝트의 Resources 파일 사용 이 중 3번을 이용 할 경우 별도의 설정이 필요함 리소스에 추가한 각각의 파일의 속성을 변경해야 함. 파일 속성 안의 "빌드 작업" 값을 "Resource"로 변경. 변경하지 않을 경우, 이미지를 등록해도 이미지 파일이 보이지 않음. Usage - img: Image 컴포넌트의 이름 - @ : 경로 표현식의 단순화 예약어 ( "\\Image\\1.png" --> @"\Image\1.png" ) - U..
· Csharp
Setup "System.IO" 네임스페이스를 추가해야 함 1 using System.IO; Usage - 파일 읽기 .txt 와 .dat 파일을 읽어서 사용함 File.ReadAllText : 파일의 모든 내용을 읽음 File.ReadAllLines : 파일의 내용을 한줄씩 읽음 1 2 3 string variable = File.ReadAllText("Path"); string[] variable = File.ReadAllLines("Path"); cs - 파일 작성 .txt와 .dat 확장자로 파일을 작성하여 저장함 덮어쓰기 1 2 3 StreamWrite writer = new StreamWriter("Path"); writer.WriteLine(string); writer.Write(string..
· Python
1. os 모듈 사용 import os os._exit(1) 2. sys 모듈 사용 import sys sys.exit()
Fullstack Developer Kwon Soon Chan J.N.U student South Korea
· Python
pyinstaller 는 .py 파일을 .exe 파일로 변환해주는 파이썬 툴임 WinXP Win7 Win10 에서 정상 작동하는 것을 테스트했음 Setup 1. pip 사용 pip install pyinstaller pip3 install pyinstaller 2. 홈페이지에서 다운로드 http://www.pyinstaller.org PyInstaller Quickstart — PyInstaller bundles Python applications PyInstaller freezes (packages) Python applications into stand-alone executables, under Windows, GNU/Linux, Mac OS X, FreeBSD, Solaris and AIX. Py..
sckwon770
sckwon770