parksh3641의 등록된 링크

키자드에 등록된 총 461개의 포스트를 확인하실 수 있습니다.

Tistory

유니티 C# 유니티 애즈 Ads 광고 간단 구현하기

코드 작성 using UnityEngine; using UnityEngine.Advertisements; public class AdManager : MonoBehaviour, IUnityAdsListener { private string gameId = "your_game_id"; // Unity Ads 대시보드에서 발급받은 게임 ID를 입력하세요. private string placementId = "video"; // 광고 종류에 따라 다른 Placement ID를 사용할 수 있습니다. void Start() { Advertisement.AddListener(this); Advertisement.Initialize(gameId, true); } // 광고 표시 시도 public void ShowAd..

Tistory

인디게임 1인 개발 출시 후 홍보 마케팅 방법

인디게임 1인 개발 출시 후 홍보 마케팅 방법 # 기본 세팅 키워드 점검 및 활용법 간단한 아이콘 제작 방법 간단한 스크린샷 제작 방법 간단한 동영상 제작 방법 구글 SEO 최적화 애플 ASO 최적화 # 무료 홍보 방법 블로그 활용 카페 활용 해외 사이트 활용 커뮤니티 활용 # 유료 홍보 방법 구글 애즈 세팅 (Google Ads) 애플 광고 세팅 (Search Ads) 유니티로 게임 개발 이후 마케팅 방법을 알려드립니다. - 크몽 DevPark 전문가의 마케팅 서비스를 만나보세요. ※ 인위적인 리뷰 조작, 불법 리뷰 마케팅이 아닌 콘텐츠를 확산시켜 체험단을 모집하는 서비... kmong.com

Tistory

솔리테어 2024 : 카드 게임 쉬운 모바일 게임 추천

솔리테어 2024 : 카드 게임 다운로드 2024년 새롭게 돌아온 솔리테어 카드 게임에 오신 것을 환영합니다. 쉽고 재미있는 카드 게임을 즐겨보세요. 하루에 단 몇 분만이라도 이 게임에 투자하면 두뇌 활동에 많은 도움이 됩니다. 집이나 직장, 공원, 버스 등 어디에서나 두뇌 훈련 게임을 즐겨보세요. 언제 어디서나 이 게임에 도전하세요. 게임 방법 솔리테어는 52장의 카드로 구성된 표준 덱으로 플레이하는 싱글 플레이어 카드 게임입니다. 플레이어의 목표는 모든 카드를 기초로 이동하여 에이스부터 킹까지 오름차순으로 카드 모양별로 분리하여 만드는 것입니다. 이 게임에는 테이블 더미에 시퀀스를 만들고, 더미 간에 카드를 이동하고, 재고 더미와 폐기물 더미를 전략적으로 사용하는 작업이 포함됩니다. 4..

Tistory

유니티 C# 기본 문법 정리 Unity Basic Code

코드 작성 using UnityEngine; public class MyScript : MonoBehaviour { int score = 0; float speed = 5.0f; string playerName = "Player1"; bool isGameOver = false; void Start() { Debug.Log("Game started!"); if (score >= 100) { Debug.Log("You achieved a high score!"); } else { Debug.Log("Keep playing to improve your score!"); } while (!isGameOver) { MovePlayer(); CheckGameOver(); } DisplayFinalScore(); }..

Tistory

유니티 C# 출석체크 기능 간단 구현하기 Attendance

코드 작성 using System; using UnityEngine; public class AttendanceManager : MonoBehaviour { private int consecutiveDays; private bool hasCheckedInToday; public int ConsecutiveDays { get { return consecutiveDays; } } private void Start() { consecutiveDays = PlayerPrefs.GetInt("ConsecutiveDays", 0); hasCheckedInToday = PlayerPrefs.GetInt("HasCheckedInToday", 0) == 1; } public void CheckIn() { if (!has..

Tistory

주사위 던지기 2023 쉬운 모바일 게임 추천

2023년 새롭게 돌아온 주사위 던지기 앱을 즐겨보세요. 간단하게 주사위를 던질 수 있는 앱입니다. 던질 주사위 개수를 고르고 던지세요! 구글 플레이 스토어 주사위 던지기 2023 - Google Play 앱 주사위가 없다면 이 앱으로 던져보세요! play.google.com

Tistory

전광판 LED 2023 모바일 도구 다운로드

글자 이동 효과, 크기, 이동속도, 색깔을 자유롭게 커스터마이징을 해보세요. 구글 플레이 스토어 전광판 LED 2023 - Google Play 앱 스마트폰을 전광판으로 만들어주는 앱입니다. play.google.com

Tistory

지뢰찾기 2023 쉬운 모바일 게임 추천

2023년 새롭게 돌아온 지뢰찾기 클래식을 즐겨보세요. 신기록을 세우고 전세계 사람들과 경쟁을 시작해보세요! 게임 보드에 지뢰가 임의로 배치되어 있으며 모든 지뢰를 찾으면 승리하는 게임입니다. 화면을 꾹 누르면 깃발을 놓을 수 있습니다. 구글 플레이 스토어 지뢰찾기 2023 - Google Play 앱 2023 새롭게 돌아온 지뢰찾기 클래식을 즐겨보세요. play.google.com

Tistory

플라잉 버드 2023 쉬운 모바일 게임 추천

2023년 새롭게 돌아온 플라잉 버드를 즐겨보세요. 신기록을 세우고 전세계 사람들과 경쟁을 시작해보세요! 화면을 터치하면 점프하며 파이프 사이를 통과해 점수를 얻는 게임입니다. 파이프를 통과할 수록 속도가 빨라지니 조심하세요. 구글 플레이 스토어 플라잉 버드 2023 - Google Play 앱 파이프 사이를 통과하세요! play.google.com

Tistory

슬라이드 퍼즐 2023 쉬운 모바일 게임 추천

2023년 새롭게 돌아온 슬라이드 퍼즐을 즐겨보세요. 신기록을 세우고 전세계 사람들과 경쟁을 시작해보세요! 퍼즐 조각을 터치하여 움직일 수 있습니다. 조각판을 움직여 퍼즐을 맞춰주세요. 구글 플레이 스토어 슬라이드 퍼즐 2023 - Google Play 앱 퍼즐을 움직여 모양을 맞춰주세요! play.google.com

Tistory

블록 퍼즐 2023 쉬운 모바일 게임 추천

2023년 새롭게 돌아온 지뢰찾기 클래식을 즐겨보세요. 신기록을 세우고 전세계 사람들과 경쟁을 시작해보세요! 블록의 수직 또는 수평선을 만들면 점수를 얻을 수 있습니다. 일정 점수에 도달하거나 더 이상 블록을 놓을 수 없다면 패배합니다. 구글 플레이 스토어 블록 퍼즐 2023 - Google Play 앱 블록을 한 줄로 만들어 청소하세요! play.google.com

Tistory

OX 퀴즈 : 일반 상식 쉬운 모바일 게임 추천

OX 퀴즈로 상식을 공부하세요! 게임 종류 ㆍ상식 퀴즈 ㆍ사자성어 퀴즈 ㆍ수도 퀴즈 ㆍOX 퀴즈 ㆍ초성 퀴즈 [영화] ㆍ초성 퀴즈 [동물] 구글 플레이 스토어 OX 퀴즈 : 일반 상식 - Google Play 앱 OX 퀴즈로 상식을 공부하세요! play.google.com 애플 앱스토어 OX 퀴즈 : 일반 상식 OX 퀴즈로 상식을 공부하세요! 게임 종류 ㆍ상식 퀴즈 ㆍ사자성어 퀴즈 ㆍ수도 퀴즈 ㆍOX 퀴즈 ㆍ초성 퀴즈 [영화] ㆍ초성 퀴즈 [동물] apps.apple.com

Tistory

비둘기의 모험 쉬운 모바일 게임 추천

여러 도시를 탐험하고 다양한 아이템을 수집하세요. 도전과제, 업적을 클리어하고 보상을 받으세요. 빛나는 황금 깃털을 모으고 특별한 보상을 획득하세요. 구글 플레이 스토어 비둘기의 모험 - Google Play 앱 비둘기의 모험이 시작된다! play.google.com 애플 앱스토어 비둘기의 모험 빛나는 황금 깃털을 찾기 위한 구구와 루루의 모험이 시작된다! 지금 다운로드 받고 모험을 떠나세요! apps.apple.com

Tistory

Brain Boast : 두뇌 훈련 쉬운 모바일 게임 추천

Brain Boast : 두뇌 훈련 & 두뇌 자극 할 수 있는 게임입니다. 지금 잠자고있는 두뇌를 깨우세요! 게임 설명 ㆍ원하는 게임을 선택 후 제한시간 안에 최대한 높은 점수를 획득하세요! 게임 종류 ㆍ순서대로 터치 - 순서대로 번호를 클릭하세요 ㆍ두더지 잡기 - 구멍에서 나온 두더지를 잡아주세요 ㆍ카드 뒤집기 - 같은 카드끼리 짝을 맞춰주세요 ㆍ단어 누르기 - 숫자에 맞게 단어 버튼을 눌러주세요 ㆍ가운데 유지하기 - 게이지를 원 안에 고정시키세요 ㆍ손가락 튕기기 - 같은 모양 방향으로 손가락을 그어주세요 ㆍ좌우 선택하기 - 가운데 모양을 보고 좌우 중에 하나를 선택하세요 ㆍ코인 러쉬 - 금고 비밀번호를 맞춘 뒤$마구 터치하여 코인을 획득하세요 더 많은 게임이 추가될 예정입니다. 지금 바로 다운..

Tistory

파이썬 python 사이트 요청보내기 Request 간단 구현

코드 작성 import requests response = requests.get("https://www.example.com") if response.status_code == 200: print(response.text) else: print("상태 코드로 요청 실패", response.status_code)

Tistory

스위프트 Swift 변수 상수 선언하기

코드 작성 // 상수 문자열 변수 선언 let message: String = "Hello World" // 정수 변수 선언 var age: Int = 30 // float 변수 선언 var weight: Float = 75.5 // bool 변수 선언 var isMarried: Bool = false

Tistory

파이썬 python 배열 수정, 추가, 길이 간단 구현

코드 작성 array = [1, 2, 3, 4, 5] # 액세스 요소 인쇄("첫 번째 요소:", 배열[0]) # 요소 수정 array[0] = 10 print("수정 후 배열:", array) # 요소 추가 array.append(6) print("추가 후 배열:", array) # 배열 길이 가져오기 array_length = len(array) print("배열 길이:", array_length) # 요소 반복 for item in array: print(item)

Tistory

파이썬 python 재귀함수 예제 간단 구현

코드 작성 def factorial(n): if n == 0: return 1 else: return n * factorial(n-1) print(factorial(5)) # 출력 : 120

Tistory

파이썬 python 나머지 구하기

코드 예시 remainder = 7 % 3 print(remainder) # 출력: 1 다른 방법 quotient, remainder = divmod(7, 3) print("몫:", quotient) print("나머지:", remainder) # 출력: # 출력: 2 # 출력: 1

Tistory

파이썬 python 슬라이싱 slicing 간단 사용법

배열 슬라이싱 my_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] sliced_list = my_list[2:6] print(sliced_list) # 출력: [2, 3, 4, 5] 리스트 슬라이싱 sliced_list = my_list[0:9:2] print(sliced_list) # 출력: [0, 2, 4, 6, 8] 문자열 슬라이싱 my_string = "Hello, World!" sliced_string = my_string[7:13] print(sliced_string) # 출력: 'World!'

Tistory

파이썬 python 오름차순 내림차순 sorted 간단 구현

오름차순 my_list = [4, 2, 1, 3, 5] sorted_list = sorted(my_list) print(sorted_list) # 출력: [1, 2, 3, 4, 5] my_list = [4, 2, 1, 3, 5] my_list.sort() print(my_list) # 출력: [1, 2, 3, 4, 5] 내림차순 my_list = [4, 2, 1, 3, 5] sorted_list = sorted(my_list, reverse=True) print(sorted_list) # 출력: [5, 4, 3, 2, 1] my_list = [4, 2, 1, 3, 5] my_list.sort(reverse=True) print(my_list) # 출력: [5, 4, 3, 2, 1]

Tistory

스위프트 Swift 조건문 if else 간단 사용법

상수 비교 let age = 25 if age >= 18 { print("You are an adult.") } else { print("You are a minor.") } // Output: You are an adult. 문자열 비교 let grade = "A" if grade == "A" { print("Excellent work!") } else if grade == "B" { print("Good job!") } else { print("Keep trying.") } // Output: Excellent work!

Tistory

파이썬 python 튜플 tuple 간단 구현

인덱싱 my_tuple = (1, 2, 3, 4, 5) print(my_tuple[2]) # Output: 3 슬라이싱 my_tuple = (1, 2, 3, 4, 5) print(my_tuple[1:4]) # Output: (2, 3, 4) 더하기 tuple1 = (1, 2, 3) tuple2 = (4, 5, 6) result = tuple1 + tuple2 # Output: (1, 2, 3, 4, 5, 6) 곱셈 my_tuple = (1, 2, 3) result = my_tuple * 3 # Output: (1, 2, 3, 1, 2, 3, 1, 2, 3) 길이 구하기 my_tuple = (1, 2, 3, 4, 5) result = len(my_tuple) # Output: 5 찾기 my_tuple = ..

Tistory

파이썬 python 집합 set 간단 구현

코드 작성 numbers = {1, 2, 3, 4} print(type(numbers)) # alphabets = set(['a', 'b', 'c']) print(alphabets) # {'c', 'a', 'b'} 합집합 numbers = {1, 2, 3, 4} evens = {2, 4} union = numbers.union(evens) print(union) # {1, 2, 3, 4} 교집합 numbers = {1, 2, 3, 4} evens = {2, 4} intersection = numbers.intersection(evens) print(intersection) # {2, 4} 차집합 numbers = {1, 2, 3, 4} evens = {2, 4} difference = numbers.di..

Tistory

파이썬 python 형변환 간단 구현

integer to string num = 42 num_as_str = str(num) print(num_as_str, type(num_as_str)) # "42" string to integer string = "100" string_as_int = int(string) print(string_as_int, type(string_as_int)) # 100 string to float string = "3.14" string_as_float = float(string) print(string_as_float, type(string_as_float)) # 3.14 list to set lst = [1, 2, 3, 3, 4] lst_as_set = set(lst) print(lst_as_set, type(l..

Tistory

파이썬 python 반복문 제어 break continue 간단 구현

break 사용 for i in range(1, 11): if i == 5: break print(i) continue 사용 for i in range(1, 11): if i % 2 == 0: continue print(i)

Tistory

파이썬 python 구구단 간단 구현

코드 작성 def multiplication_table(n): for i in range(1, n+1): for j in range(1, n+1): print(f"{i*j:

Tistory

파이썬 python 파일 복사하기 shuilt 간단 구현

코드 예시 import shutil shutil.copy(src_file, dst_file) src_file : 복사하려는 파일의 경로 dst_file : 대상 파일의 경로 다른 예시 import shutil shutil.copytree(src_dir, dst_dir) src_dir : 복사하려는 디렉토리 경로 dst_dir : 대상 디렉토리의 경로

Tistory

파이썬 python 날짜 가져오기 간단 구현

코드 예시 from datetime import datetime today = datetime.today().date() print(today)

Tistory

스위프트 Swift 랜덤 간단 구현 Random

코드 예시 import Darwin // 0에서 9 사이의 임의의 정수 생성 let randomInt = Int(arc4random_uniform(10)) print(randomInt) // 0과 1 사이의 임의의 부동 소수점 숫자 생성 let randomFloat = Double(arc4random()) / Double(UInt32.max) print(randomFloat)

Tistory

스위프트 Swift 배열 간단 사용법

코드 작성 let integers = [1, 2, 3, 4, 5] print("첫 번째 요소: \(정수[0])") print("두 번째 요소: \(정수[1])") // 배열 요소 수정 var mutableIntegers = integers mutableIntegers[0] = 6 print("수정된 첫 번째 요소: \(mutableIntegers[0])") // 배열의 요소를 반복합니다. for number in mutableIntegers { print(number) }

Tistory

스위프트 Swift 문자열 자르기 간단 사용법

코드 작성 let greeting = "Hello, World!" // 문자열의 일부 추출 let startIndex = greeting.index(greeting.startIndex, offsetBy: 7) let endIndex = greeting.index(greeting.endIndex, offsetBy: -1) let substring = greeting[startIndex..

Tistory

파이썬 python 디렉토리 경로 구하기 간단 구현 (os 모듈)

현재 경로 import os current_directory = os.getcwd() print("Current Directory: ", current_directory) 디렉토리 경로 import os file_path = "/path/to/your/file.txt" directory = os.path.dirname(file_path) print("Directory Path: ", directory)

Tistory

파이썬 python 일시정지 Sleep 함수 간단 사용법

코드 작성 import time print("Started sleeping...") time.sleep(5) # pauses the program for 5 seconds print("Finished sleeping.")

Tistory

파이썬 python 문자열 숫자 확인 isdigit 간단 사용법

코드 작성 string = "12345" if string.isdigit(): print(string, "is a digit.") else: print(string, "is not a digit.")

Tistory

파이썬 python filter 함수 간단 사용법

코드 작성 numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] def is_even(num): return num % 2 == 0 even_numbers = filter(is_even, numbers) print("Even numbers:", list(even_numbers))

Tistory

파이썬 python 팩토리얼 factorial 간단 사용법

코드 작성 def factorial(n): if n == 0: return 1 else: return n * factorial(n-1) num = 5 result = factorial(num) print("The factorial of", num, "is", result)

Tistory

파이썬 Python 반복문 for문 while문 간단 구현

for문 fruits = ['apple', 'banana', 'cherry'] for fruit in fruits: print(fruit) while문 count = 0 while count < 5: print(count) count += 1

Tistory

파이썬 python 변수 비교, 문자열 비교 간단 구현

변수 비교 a = 5 b = 3 if a > b: print("a is greater than b") else: print("a is not greater than b") 문자열 비교 x = "hello" y = "world" if x < y: print("x comes before y in the dictionary") else: print("y comes before x in the dictionary")

Tistory

파이썬 python 문자열 공백제거 replace, strip 간단 구현

replace 활용 string = " This is a string with leading and trailing whitespaces " stripped_string = string.replace(" ", "") print(stripped_string) strip 활용 string = " This is a string with leading and trailing whitespaces " stripped_string = string.strip() print(stripped_string)

Tistory

파이썬 python 리스트 List 선언 간단 구현

문자열 리스트 fruits = ["apple", "banana", "cherry", "dates"] print(fruits) 숫자 리스트 numbers = [1, 2, 3, 4, 5] print(numbers) 혼합 리스트 mixed_list = [1, "apple", 3.14, True] print(mixed_list)

Tistory

파이썬 python 딕셔너리 선언 및 정렬 간단 구현

딕셔너리 선언 person = {"name": "John", "age": 30, "city": "New York"} print(person) 키 호출 print(person["name"]) # outputs: John 키 값을 추가하거나 수정 person["gender"] = "male" person["age"] = 31 print(person) # outputs: {'name': 'John', 'age': 31, 'city': 'New York', 'gender': 'male'} 정렬하기 person = {"name": "John", "age": 30, "city": "New York"} sorted_person = sorted(person.items(), key=lambda x: x[0]) print..

Tistory

파이썬 python 논리 연산자 and, or, not 간단구현

and 연산자 x = True y = False # and operator print(x and y) # outputs: False print(x and x) # outputs: True print(y and y) # outputs: False or 연산자 x = True y = False # or operator print(x or y) # outputs: True print(x or x) # outputs: True print(y or y) # outputs: False not 연산자 x = True y = False # not operator print(not x) # outputs: False print(not y) # outputs: True

Tistory

파이썬 python if문 비교 간단 구현

코드 예시 age = 25 name = "John" if age >= 18 and name == "John": print("You are an adult named John.") if age < 18 or name != "John": print("You are either a minor or not named John.") if not (age >= 18 and name == "John"): print("You are either a minor or not named John.")

Tistory

파이썬 python 폴더 생성 makeddirs 삭제 간단 구현

폴더 생성 import os folder_name = "new_folder" if not os.path.exists(folder_name): os.makedirs(folder_name) 폴더 삭제 import shutil folder_name = "new_folder" if os.path.exists(folder_name): shutil.rmtree(folder_name)

Tistory

파이썬 python 파일 읽기 쓰기 read write 간단 구현

파일 읽기 filename = "sample.txt" # Read the contents of the file with open(filename, "r") as file: contents = file.read() print("Original contents:") print(contents) 파일 쓰기 # Modify the contents of the file contents = contents.upper() # Write the modified contents to the file with open(filename, "w") as file: file.write(contents) # Read the modified contents of the file with open(filename, "r") as f..

Tistory

파이썬 python 계산기 간단 구현

코드 작성 def add(num1, num2): return num1 + num2 def subtract(num1, num2): return num1 - num2 def multiply(num1, num2): return num1 * num2 def divide(num1, num2): return num1 / num2 print("Select operation.") print("1. Add") print("2. Subtract") print("3. Multiply") print("4. Divide") choice = int(input("Enter choice (1/2/3/4): ")) num1 = int(input("Enter first number: ")) num2 = int(input("Enter s..

Tistory

파이썬 python 문자열 자르기 split 간단 구현

코드 예시 sentence = "This is an example sentence." words = sentence.split(" ") print(words) 결과 ['This', 'is', 'an', 'example', 'sentence.']

Tistory

파이썬 python 문자열 합치기 join 간단 구현

코드 작성 words = ['This', 'is', 'an', 'example', 'sentence.'] sentence = " ".join(words) print(sentence) 결과 This is an example sentence.

Tistory

파이썬 python map함수 간단 구현

코드 작성 numbers = [1, 2, 3, 4, 5] def square(x): return x**2 squared_numbers = list(map(square, numbers)) print(squared_numbers) 결과 [1, 4, 9, 16, 25]

Tistory

파이썬 python 문자열 검색 find함수 간단 구현

코드 작성 text = "게으른 개를 뛰어넘는 빠른 갈색 여우" substring = "여우" index = text.find(substring) if index != -1: print("인덱스에서 하위 문자열을 찾았습니다", index) else: print("텍스트에서 하위 문자열을 찾을 수 없습니다.")

Tistory

파이썬 python 주석 처리 간단 구현

코드 작성 # 한줄 주석 달기 """ 두줄 이상 주석 달기 두줄 이상 주석 달기 두줄 이상 주석 달기 """ # 변수 정의 x = 10 # 계산 수행 y = x + 5 # 결과 출력 print("The result is", y) # 다음 코드 줄의 목적을 설명하는 주석 result = x * y # 결과 출력 print("The final result is", result)

Tistory

파이썬 python 예외처리 try except 간단 구현

코드 작성 def divide(a, b): try: result = a / b except ZeroDivisionError: print("0으로 나눌 수 없습니다!") except TypeError: print("두 입력 모두 숫자여야 합니다!") else: return result print(divide(10, 2)) # 출력: 5.0 print(divide(10, 0)) # 출력: 0으로 나눌 수 없습니다! print(divide(10, "2")) # 출력: 두 입력 모두 숫자여야 합니다!

Tistory

자바 Java Switch문 간단 구현

코드 작성 int dayOfWeek = 3; String dayName; switch (dayOfWeek) { case 1: dayName = "Monday"; break; case 2: dayName = "Tuesday"; break; case 3: dayName = "Wednesday"; break; case 4: dayName = "Thursday"; break; case 5: dayName = "Friday"; break; case 6: dayName = "Saturday"; break; case 7: dayName = "Sunday"; break; default: dayName = "Invalid day of week"; } System.out.println("Today is " + dayNam..

Tistory

자바 Java 변수 비교, 문자열 비교 간단 구현

문자열 비교 String str1 = "Hello"; String str2 = "hello"; String str3 = "Hello"; if (str1.equals(str2)) { System.out.println("str1 is equal to str2"); } else { System.out.println("str1 is not equal to str2"); } if (str1.equals(str3)) { System.out.println("str1 is equal to str3"); } else { System.out.println("str1 is not equal to str3"); } 변수 비교 int num1 = 5; int num2 = 7; if (num1 == num2) { System.o..

Tistory

파이썬 python 거듭제곱 함수 power 간단 사용법

코드 작성 def power(base, exponent): result = 1 for i in range(exponent): result *= base return result 결과 print(power(2, 3)) # Output: 8

Tistory

파이썬 python 역방향 함수 reverse 간단 사용법

코드 작성 def reverse(string): return string[::-1] 결과 print(reverse("hello")) # Output: "olleh"

Tistory

파이썬 python 첫 글자를 대문자로 변환 capitalize 간단 사용법

코드 작성 def capitalize(string): return string.capitalize() 결과 print(capitalize("hello world")) # Output: "Hello world"

Tistory

자바 Java 반복문 for문 while문 간단 구현

while문 int count = 0; while (count < 10) { System.out.println("Count is: " + count); count++; } for문 for (int i = 0; i < 10; i++) { System.out.println("i is: " + i); }

Tistory

스위프트 Swift 타이머 간단 구현 Timer

코드 작성 import UIKit class ViewController: UIViewController { var timer: Timer? override func viewDidLoad() { super.viewDidLoad() startTimer() } func startTimer() { timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { timer in // Code to be executed every second print("Timer fired!") } } func stopTimer() { timer?.invalidate() timer = nil } deinit { stopTimer() } }

1 2 3 4 5