목록STEADYSTUDY/Etc (8)
오보에블로그
참고 : https://webnautes.tistory.com/1219 https://blankspace-dev.tistory.com/416 [Python] 파이썬 마우스 제어하는 방법 (PyAutoGUI 라이브러리 이용) 어느 프로그래밍 언어든 장치 제어 방법은 존재하는데, 이번 포스팅에서는 파이썬에서 마우스를 제어할 수 있는 방법을 포스팅하려고 합니다. 물론, 저수준 단위부터 마우스를 제어하는 것은 �� blankspace-dev.tistory.com # pyautogui install # pip install pyautogui import pyautogui # 현재 모니터 사이즈 크기 반환 screenWidth, screenHeight = pyautogui.size() print('현재 모니터 사이..

import sys#sys.argv[i] import subprocess import itertools #for i in range(len(sys.argv)): # print(sys.argv[i]) readf = open(sys.argv[1], "r") ori_line = len(readf.readlines()) print("ORIGINAL FILE SIZE IS ", ori_line) parse = [] readf.seek(0) for i in range(ori_line): parse.append(readf.readline()) readf.close() divide_time = 2 group = [] group_len = divide_time while(divide_time (line-1)): end ..
# 별찍기 - 10 성공 # 시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율 # 1 초 128 MB 2360 1171 876 50.057% # 문제 # 예제를 보고 별찍는 규칙을 유추한 뒤에 별을 찍어 보세요. # 입력 # 첫째 줄에 N이 주어진다. N은 항상 3의 제곱꼴인 수이다. (1, 3, 9, 27, ...) (N=3^k, 0
Problem 1 1. Write a program that inputs alphabetic characters ‘a’ to ‘z’ in a single line in a text file.2. The text file must exist in the project folder.3. Text file name is “alpha.txt”.4. The text file must exist in the project folder. 5. If “alpha.txt” does not exist in your project folder, your program should automatically generate a text file named “alpha.txt”. Problem 1 result Problem 1 ..
collection 이란 java 에서 데이터를 자료구조하기위해 기본적으로 제공하는것import java.util.*; 을 통해 불러서 사용할 수 있다.Vector yoong = new Vector(); 을 통해 yoong이라는 정수를 요소로 하는 vector 구조를 생성 할 수 있다. 안에는 데이터 타입의 wrapper, 클래스 형태로 써야한다.ex) int -> Integer String ->String 12345678910111213141516171819202122232425262728293031323334import java.util.*; class Dic{ HashMap map = new HashMap(); //생성 Dic(){ //생성자 초기화 map.put(1, "one"); map.put(..
추상클래스 특징1. 인스턴스 x2.추상메소드 존재3. 상속받는 클래스도 추상클래스4. 추상메소드 엔 내용 없다 전달받는 인자의 형만 존재 123456789101112131415161718192021222324252627282930package abstinter;abstract class Calculator{ public abstract int add(int a, int b); public abstract int subtract(int a, int b); public abstract double average(int[] a);}public class GoodCalc { public int add(int a, int b) { return a+b; } public int subtract(int a, int b..
상속(inheritance)1.한 클래스의 내용을 사용하는 다른 클래스를 만들고싶다면, class A{}class B extends A{//A 클래스의 내용을 사용하는 B 클래스}이 방법을 통해 가능하다. 여기서 클래스 A를 수퍼클래스라고 하고 클래스 B를 서브클래스 라고 한다.2.서브클래스는 수퍼클래스의 private 멤버를 제외한 다른 모든 멤버에 접근이 가능하다.3.서브클래스가 실행되면 자동으로 수퍼클래스가 실행된다. 이때, 실행되는 수퍼클래스의 생성자는 기본생성자이다.4.3번에서 수퍼클래스가 실행하는 생성자를 따로 정하기 위해선 서브클래스 생성자 맨윗줄에 super()을 적어서 사용한다. 예시들을 보자.(예시1은 1~2,예시2는 3~4에 관한 내용이다.) 예시 1 123456789101112131..
Problem 1:School1.define 'Class Student'2.Define 'five student' using "Constructor' in Student[] Name x y Score Sex G-Drangon 23 22 85 Boy Naruto 66 35 75 Boy Dva 33 46 80 Girl Teemo 14 55 95 Boy Sona 87 75 100 Girl 3.Define 'respones() method'.which print name + 'Yes'Ex1)Dva Yes 1.Define ‘callStudents(Student[], value) method’ 2.can call students conditionally. (It should use ‘response()’ in st..