This file contains hidden or 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
import operator | |
# https://docs.python.org/3/library/operator.html | |
myOp = operator.and_ | |
print bool( myOp(myOp(3==3,1==1), myOp(2==2, 1==1)) ) |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
) | |
type result struct { | |
src_text string | |
result_sz string | |
is_done bool |
This file contains hidden or 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
// ReadBMjuP.cpp : Defines the entry point for the console application. | |
// | |
#include <iostream> | |
#include <vector> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <algorithm> | |
#include <list> |
This file contains hidden or 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 selenium import webdriver | |
#browser = webdriver.Firefox() | |
browser = webdriver.Chrome() | |
browser.get("http://movie.naver.com/movie/bi/pi/filmo.nhn?code=71351") | |
browser.switch_to.frame("filmoContentsIframe"); | |
browser.find_elements_by_css_selector('#filmoOrder')[0].click() | |
menus = browser.find_elements_by_css_selector('#filmoOrderLayer ul li a') |
This file contains hidden or 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 * | |
s_socket = socket(AF_INET, SOCK_STREAM) | |
s_socket.connect(("localhost", 6000)) | |
while (True): | |
s_socket.send('Test\n'.encode()) |
This file contains hidden or 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
# Client | |
from multiprocessing.connection import Client | |
address = ('localhost', 6000) | |
conn = Client(address) | |
conn.send('test') |
NewerOlder