This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import shuffle | |
tags = ['a', 'b', 'c', 'result'] | |
def get_triangle_type(a, b, c): | |
if a == 90 or b == 90 or c == 90: | |
return "직각" | |
elif a > 90 or b > 90 or c > 90: | |
return "둔각" | |
elif a == b == c == 60: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install python-dev libffi-dev libssl-dev zlib1g-dev libncurses5-dev libsqlite3-dev -y | |
tar xvf Python-2.7.*.tar.xz | |
cd Python-2.7.* | |
./configure | |
sudo make -j 4 | |
sudo make altinstall | |
which python2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: | |
def __init__(self, percentage): | |
self.percentage = percentage | |
if __name__ == '__main__': | |
data = [A(12), A(32), A(22)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ctime> | |
using namespace std; | |
void main() | |
{ | |
srand((unsigned)time(NULL)); // Set random seed | |
Neuron* neuron = new Neuron(2, 0.1); |
NewerOlder