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
import random | |
def play(): | |
print("暗記ゲームにようこそ。半角数字でモードを選んでな") | |
print("0: 数字から累乗数, 1: 累乗数から数字") | |
mode = input() | |
if mode != "0" and mode != "1": | |
print("変な入力あったから終わりや") | |
return |
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
def n22(n): | |
a = 2 | |
b = 2 | |
return n**a+b | |
def calc(): | |
li = [] | |
li2 = [] | |
for i in range(10000): | |
li.append(n22(i)) |
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
$(function(){ | |
let localStream = null; | |
navigator.mediaDevices.getUserMedia({video: true, audio: true}) | |
.then(function (stream) { | |
$('#myStream').get(0).srcObject = stream; | |
localStream = stream; | |
}).catch(function (error) { | |
console.error('mediaDevice.getUserMedia() error:', error); | |
return; |
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 bs4 import BeautifulSoup | |
from collections import Counter | |
import urllib.request as req | |
import re | |
import time | |
links = [] | |
results = [] | |
for i in range(1, 101): |