python(2)
-
파이썬 육망성
#!/usr/bin/python print("insert number : ", end='') line =int(input()) num_star=4*line-1 for i in range(0,line,1): num_white=2*line-i-1 print((" "*num_white) + ("*"*(i+(i+1)))) for i in range(0,line,1): num_white=i print((" "*num_white) + ("*"*num_star)) num_star -=2 num_star +=2 for i in range(line-1,0,-1): num_white=i-1 num_star +=2 print((" "*num_white) + ("*"*num_star)) for i in range(line,0..
2020.01.03 -
How to install gdb-8.0 / peda on ubuntu
How to install gdb & peda on ubuntu 18.04.02_LTS(Bionic Beaver) First, remove gdb and install python 2.x, library #> apt-get remove gdb #> apt-get install python2.7-dev #> apt-get install libcurses* #> apt-get install texinfo #> apt-get install git Second, you must download gdb-8.0.tar.gz file and install this file #> wget http://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.gz #> tar xvzf gdb-8.0.tar.gz #> c..
2019.04.04