๐Ÿ’ป 155

[ํŒŒ์ด์ฌ] ์—‘์…€ ํŒŒ์ผ ์—ฐ๋™(openpyxl)

0. ์ƒ์„ฑ ๋ฐ ๊ธฐ๋ก import openpyxl openpyxl ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋ถˆ๋Ÿฌ์˜จ๋‹ค. wb = openpyxl.Workbook() sheet = wb.active sheet['A1'] = "Type" sheet['B1'] = "Name" sheet['C1'] = "Age" sheet['D1'] = "Fruit" ํ‘œ๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ค๊ณ , A1, B1, C1, D1์— ์†์„ฑ๊ฐ’๋“ค์„ ๊ธฐ๋กํ•ด์ค€๋‹ค. TYPE = ['๋ž˜ํผ', '์ค‘๊ณ ์ฐจํŒ๋งค์›', '์นดํŽ˜์‚ฌ์žฅ', ...] NAME = ['implanted_kid', '์ฐจ์ง„์„', '์ตœ์ค€', ...] AGE = [26, 34, 32, ...] for i in range(2, 2002) sheet.cell(row=i, column=1).value = TYPE[i] sheet.cell..

[ํŒŒ์ด์ฌ] ์—ฌ๋Ÿฌ ์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ์ผ์ • ํ™•๋ฅ ๋กœ ์ƒ์„ฑ

0๋ถ€ํ„ฐ 1 ์‚ฌ์ด์˜ ๋‚œ์ˆ˜๋ฅผ ๋ฐœ์ƒ์‹œํ‚ค๊ณ , ๋ˆ„์ ํ™•๋ฅ ์„ ํ†ตํ•ด ๊ตฌ์„ฑํ•œ ํ…Œ์ด๋ธ”์— ์–ด๋Š ๊ณณ์— ๋“ค์–ด๊ฐ€๋Š”๊ฐ€๋กœ ํ™•๋ฅ ์  ๋ฐœ์ƒ ๊ฐ€๋Šฅ ์˜ˆ์‹œ # ์‚ฌ๊ณผ, ํฌ๋„, ๋ณต์ˆญ์•„, ๊ทค์„ ์•„๋ž˜์™€ ๊ฐ™์€ ํ™•๋ฅ ๋กœ 100๊ฐœ๋ฅผ ์ƒ์„ฑ # ์‚ฌ๊ณผ 20%, ํฌ๋„ 15%, ๋ณต์ˆญ์•„ 40%, ๊ทค 25% import random FRUIT_NUM = 100 # ๋ˆ„์  ํ™•๋ฅ ์„ ๊ณผ์ผ ์ˆœ์„œ๋Œ€๋กœ ๊ธฐ๋ก FRUIT_PROB = [0.20, 0.35, 0.75, 1.00] FRUIT_DICT = {0: '์‚ฌ๊ณผ', 1: 'ํฌ๋„', 2: '๋ณต์ˆญ์•„', 3: '๊ทค'} fruit_table = [0, 0, 0, 0] n = random.random() for i in range(FRUIT_NUM): for j in range(4): if n < fruit_prob[j]: fruit_tab..

[Git] Forkํ•œ Repository๋ฅผ ์›๋ณธ์œผ๋กœ ์—…๋ฐ์ดํŠธ

# ์›๋ณธ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์›๊ฒฉ์— upstream์œผ๋กœ ์ถ”๊ฐ€ git remote add upstream "์›๋ณธ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ" # upstream ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์—์„œ ์—…๋ฐ์ดํŠธ๋ฅผ ๋ฐ›์•„์˜ด git fetch upstream # upstream์˜ master ๋ธŒ๋žœ์น˜๋ฅผ ํ˜„์žฌ ๋ธŒ๋žœ์น˜(Forkํ•œ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ)๋กœ ํ•ฉ์ณ์คŒ git merge upstream/master # ์ด๊ฒƒ์„ ๊นƒํ—ˆ๋ธŒ์— ๋™๊ธฐํ™” git push origin master [Git] Fork ํ•œ repository ์ตœ์‹ ์œผ๋กœ ๋™๊ธฐํ™”ํ•˜๊ธฐ Fork ํ•œ repository ๋ฅผ ์ตœ์‹ ์œผ๋กœ ๋™๊ธฐํ™”์‹œ์ผœ์•ผ ํ•  ๋•Œ๊ฐ€ ์žˆ๋‹ค. Open Source ์— ๋‹จ๋ฐœ์„ฑ์ด ์•„๋‹Œ ์ง€์†์ ์œผ๋กœ contribution ํ•˜๋ ค ํ•  ๋•Œ์ˆ˜์ •ํ•ด์„œ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด fork ํ•ด์˜จ ์›๋ณธ repository ์—์„œ ์—…๋ฐ์ดํŠธ๋œ ๋ถ€๋ถ„์„ ๋ฐ›..

[Git] ๋ฆฌํฌ๋ช… ์ถ”์ฒœ ๊ทœ์น™

์‚ฌ๋žŒ๋“ค์ด ์ž˜ ์•ˆ์•Œ๋ ค์ฃผ๋Š” GitHub ํŒ ๊ณ„์ •๋ช…๊ณผ ๋ฆฌํฌ๋ช…์„ ์ •ํ•  ๋•Œ ์ž˜ ์ •ํ•œ๋‹ค medium.com ์ฐธ๊ณ  ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ด๋ฆ„์„ ๋ฐ”๊ฟจ๋‹ค๋ฉด ์ฃผ์†Œ๊ฐ€ ํ•ด๋‹น ์ด๋ฆ„์œผ๋กœ ๋ฐ”๊ผˆ์œผ๋ฏ€๋กœ, ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋‹ค์‹œ ์—ฐ๊ฒฐํ•ด์ฃผ์ž! git remote add set-url origin "์ƒˆ๋กœ์šด ์ฃผ์†Œ"

[C, C++] ๊ณต๋ฐฑ์ด ํฌํ•จ๋œ ๋ฌธ์ž์—ด ์ž…๋ ฅ๋ฐ›๊ธฐ

[C++] ๊ณต๋ฐฑ์ด ํฌํ•จ๋œ ๋ฌธ์ž์—ด ์ž…๋ ฅ๋ฐ›๊ธฐ(char array, string : getline) C, C++์—์„œ ์ž…๋ ฅ์„ ๋ฐ›์„ ๋•Œ "๊ณต๋ฐฑ์ด ํฌํ•จ๋œ ๋ฌธ์ž์—ด"์„ ์ž…๋ ฅ๋ฐ›๋Š” ๋ฒ•์„ ์†Œ๊ฐœํ•œ๋‹ค. Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #include #include using namespace std; int main(){.. shjz.tistory.com ์ฐธ๊ณ  ๋ฌธ์ œ 2908๋ฒˆ: ์ƒ์ˆ˜ ์ƒ๊ทผ์ด์˜ ๋™์ƒ ์ƒ์ˆ˜๋Š” ์ˆ˜ํ•™์„ ์ •๋ง ๋ชปํ•œ๋‹ค. ์ƒ์ˆ˜๋Š” ์ˆซ์ž๋ฅผ ์ฝ๋Š”๋ฐ ๋ฌธ์ œ๊ฐ€ ์žˆ๋‹ค. ์ด๋ ‡๊ฒŒ ์ˆ˜ํ•™์„ ๋ชปํ•˜๋Š” ์ƒ์ˆ˜๋ฅผ ์œ„ํ•ด์„œ ์ƒ๊ทผ์ด๋Š” ์ˆ˜์˜ ํฌ๊ธฐ๋ฅผ ๋น„๊ตํ•˜๋Š” ๋ฌธ์ œ๋ฅผ ๋‚ด์ฃผ์—ˆ๋‹ค. ์ƒ๊ทผ์ด๋Š” ์„ธ ์ž๋ฆฌ ์ˆ˜ ๋‘ www.acmicpc.net #include #include using..

[CUDA] ์ปดํŒŒ์ผ์ด ์•ˆ๋  ๋•Œ(์ฝ”๋“œ MSB 3721)

MSB3721์˜ ์˜๋ฏธ How to fix Error MSB3721 MSB3721 is the VS way of saying “I ran nvcc, and it returned an error code.” Other than knowing that your compilation failed, it is completely useless for understanding why it failed. To understand why, it’s necessary to increase the verbosity of VS forums.developer.nvidia.com MSB3721์€ Visual Studio์—์„œ "๋‚ด๊ฐ€ ์—”๋น„๋””์•„ CUDA ์ปดํŒŒ์ผ๋Ÿฌ๋ฅผ ๋Œ๋ ค๋ดค๋Š”๋ฐ, ์—๋Ÿฌ๊ฐ€ ๋‚ฌ์–ด" ์ •๋„์˜ ์ •๋ณด๋งŒ ์ œ๊ณตํ•˜๋Š” ์—๋Ÿฌ ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค. ..

[CUDA] VS 2019 ์—ฐ๋™ ์‹œ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

์ฆ์ƒ VS 2019, CUDA 10.1 ํ™˜๊ฒฝ์—์„œ ์ƒˆ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ์‹œ CUDA ํ…œํ”Œ๋ฆฟ์ด ๋ณด์ด์ง€ ์•Š์Œ (ํ•„์ž๋Š” (๋งํฌ)๋ฅผ ๋ณด๊ณ  ๋”ฐ๋ผํ•ด ์–ด์ฐŒ์ €์ฐŒ ํ•ญ๋ชฉ์„ ์ถ”๊ฐ€ํ•˜๊ธด ํ–ˆ์œผ๋‚˜, ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์ด ์•ˆ ๋˜๋Š” ์˜ค๋ฅ˜๊ฐ€ ์žˆ์—ˆ์Œ) ํ•ด๊ฒฐ Visual Studio 2019 and CUDA 10.1 Hello developer and programmer :-) Someone have tried CUDA 10.1 with visual studio 2019? I have tried it but I am in trouble. I can see the Nsight monitor in solution explorer I can also access to it. The big problem is that I do not see anywhere..

[openGL] VS2019 ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ

0. freeglut ๋‹ค์šด๋กœ๋“œ freeglut 3.0.0 MSVC Package ์•„๋ž˜ ๋งํฌ๋กœ ๋‹ค์šด๋กœ๋“œ. freeglut Windows Development Libraries Introduction Whilst at the University of Essex, I took a module called “Interactive Computer Graphics” (or EE222 as we referred to it). Half of the course consisted of using POV-Ray to create images, and then putting them together to make a high qualit www.transmissionzero.co.uk 1. ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ 2. ํ”„๋กœ์ ํŠธ์— f..