Skip to content

Instantly share code, notes, and snippets.

nekoppy

Block or report user

Report or block nekoppy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Test_Generatar.py
#! python3
import random
numerus = {'1':'unus', '2':'duo','3':'tres','4':'quattuor','5':'quinque','6':'sex','7':'septem','8':'octo','9':'novem','10':'decem'}
for quiz_num in range(6):
quiz_file = open('numerusquiz{}.txt'.format(quiz_num + 1), 'w')
answer_key_file = open('numerusquiz_answers{}.txt'.format(quiz_num + 1), 'w')
View wiki_api.py
import wikipedia
wikipedia.set_lang('ja')
page = wikipedia.page('猫')
print(page.summary)
View wiki_api.y
import wikipedia
wikipedia.set_lang('ja')
page = wikipedia.page('')
print(page.summary)
View sleep.py
import time
print("スリープ開始")
print("...")
time.sleep(3)
print("スリープ終了")
View time2.py
import time
print(time.ctime())
View time.py
import time
print(time.time())
View randomq.py
import random
r = random.randint(1,24)
print(r)
View shuffle.py
import random
list = ['あ','い','う','え','お']
random.shuffle(list)
print(list)
View choice.py
import random
moji ='あいうえお'
c = random.choice(moji)
print(c)
View randint.py
import random
r = random.randint(1,5)
print(r)
You can’t perform that action at this time.