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
public class ManMember { | |
private String name; | |
private int age; | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; |
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 pytube import YouTube | |
import requests | |
import subprocess | |
import os | |
workdir = os.path.dirname(os.path.realpath(__file__)) | |
url = input('playlist url : ').rstrip() | |
if 'watch' in url: |
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 socket import * | |
import threading | |
import time | |
def send(sock): | |
while True: | |
sendData = input('>>>') | |
sock.send(sendData.encode('utf-8')) |
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 socket import * | |
import threading | |
import time | |
def send(sock): | |
while True: | |
sendData = input('>>>') | |
sock.send(sendData.encode('utf-8')) |
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 socket import * | |
def send(sock): | |
sendData = input('>>>') | |
sock.send(sendData.encode('utf-8')) | |
def receive(sock): | |
recvData = sock.recv(1024) |
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 socket import * | |
def send(sock): | |
sendData = input('>>>') | |
sock.send(sendData.encode('utf-8')) | |
def receive(sock): | |
recvData = sock.recv(1024) |
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 socket import * | |
port = 8080 | |
clientSock = socket(AF_INET, SOCK_STREAM) | |
clientSock.connect(('127.0.0.1', port)) | |
print('접속 완료') |
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 socket import * | |
port = 8080 | |
serverSock = socket(AF_INET, SOCK_STREAM) | |
serverSock.bind(('', port)) | |
serverSock.listen(1) | |
print('%d번 포트로 접속 대기중...'%port) |
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 socket import * | |
clientSock = socket(AF_INET, SOCK_STREAM) | |
clientSock.connect(('127.0.0.1', 8080)) | |
print('연결 확인 됐습니다.') | |
clientSock.send('I am a client'.encode('utf-8')) | |
print('메시지를 전송했습니다.') |
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 socket import * | |
serverSock = socket(AF_INET, SOCK_STREAM) | |
serverSock.bind(('', 8080)) | |
serverSock.listen(1) | |
connectionSock, addr = serverSock.accept() | |
print(str(addr),'에서 접속이 확인되었습니다.') |