anonymous Pythonで転置式暗号
Public Domain Python
#ENCRYPTING WITH THE TRANSPOSITION CIPHER

def main():
  myMessage = 'Common sense is not so common.'
  myKey = 8

  print(f'Key : {myKey}\nPlaneText : {myMessage}\nCipherText :{enc_box}')   

def encryptMessage(key, message):

  box=['']
  counter=0
  for i in message:
    box[counter] += i
    if len(box[counter]) == key:
      counter += 1
      box.append('')

  enc_box=''
  for i in range(myKey):
    for k in box:
      if i < len(k):
        enc_box += k[i]

    return enc_box

if __name__ == '__main__':
  main()
anonymous PythonでCaesar Cipher をbrute force
Public Domain Python
#HACKING THE CAESAR CIPHER WITH THE BRUTE-FORCE TECHNIQUE

alpha='abcdefghijklmnopqrstuvwxyz'.upper()
LETTER=''

Text='GUVF VF ZL FRPERG ZRFFNTR.'

for i, k in enumerate(alpha):
  shift=alpha.find(k)
  for j in Text:
    pos=alpha.find(j)
    if pos < 0:
      LETTER += j
    else:
      LETTER += (alpha*2)[pos+shift]
  print(f'Key#{str(i).zfill(2)} : {LETTER}')
  LETTER = ''
anonymous PythonでCaesar Cipher in Cryptography
Public Domain Python
#Caesar Cipher in Cryptography

def encrypt(text,s):
  alpha='abcdefghijklmnopqrstuvwxyz'
  cipher=(alpha*2)[s:s+26]
  output=''
  for i in text.lower():
    output +=cipher[alpha.find(i)] if i in alpha else i
  return output.upper()

def main():
  Text=input('Text :')
  Shift=int(input('Shift :'))
  
  print(f'Output : {encrypt(Text,Shift)}')

if __name__ == "__main__":
  main()
𝐙 Markdownのカレンダーテーブルを出力する 修正した
MIT Python
import datetime

# localeが動かなかったので削除

row_date = datetime.date.today()

print("|日付|予定|メモ|")
print("|:---:|:---|:---|")

for i in range(15):
  row = "| "
  row += str(row_date.strftime("%m/%d %a "))
  row += "| "
  if row_date.weekday() == 0: #月曜
    row += ""
  elif row_date.weekday() == 1: #火曜
    row += ""
  elif row_date.weekday() == 2: #水曜
    row += ""
  elif row_date.weekday() == 3: #木曜
    row += ""
  elif row_date.weekday() == 4: #金曜
    row += ""
  elif row_date.weekday() == 5: #土曜
    row += ""
  elif row_date.weekday() == 6: #日曜
    row += ""
  row += " |  |"
  print(row)
  row_date += datetime.timedelta(days=1)
𝐙 Markdownのカレンダーテーブルを出力する
MIT Python
import datetime, locale

locale.setlocale(locale.LC_TIME, 'ja_JP.UTF-8')
row_date = datetime.date.today()

print("|日付|予定|メモ|")
print("|:---:|:---|:---|")

for i in range(15):
  row = "| "
  row += str(row_date.strftime("%m/%d %a "))
  row += "| "
  if row_date.weekday() == 0: #月曜
    row += ""
  elif row_date.weekday() == 1: #火曜
    row += ""
  elif row_date.weekday() == 2: #水曜
    row += ""
  elif row_date.weekday() == 3: #木曜
    row += ""
  elif row_date.weekday() == 4: #金曜
    row += ""
  elif row_date.weekday() == 5: #土曜
    row += ""
  elif row_date.weekday() == 6: #日曜
    row += ""
  row += " |  |"
  print(row)
  row_date += datetime.timedelta(days=1)
anonymous No title
Python
print('Test')
anonymous @NG_nekomaru
Python
import notification
import clipboard
import keyboard
import datetime
import calendar
import tweepy
import base64
import json
import time
import glob
import os
import sys
import re
import random
import console
import sound

"""
              ---初期設定---
 
  
 
 ▷を押し、表示された数字を DMで伝えて下さい
 
 それと引き換えにこちらがIDを渡しますので、受け取ったAutoIDを30行目 00000 を消して貼り付けてください

"""

#          ⤵︎の00000 を消した後 貰ったIDを = の後にそのまま貼り付けてください
Auto_ID = 00000

"""

   ---使用設定部分---
  
   パスツイ  21:30
   ルーム番号 567
   
      の場合
     ↓↓↓↓↓↓↓↓
     
 pass_tweet_time = "30"      ← 21:00 の場合は"00"  ※分だけを記入します。
 room_id         = "567" 

----- このように下を書き換えます。------
 
"""

pass_tweet_time = "00"
room_id         = "0000" 

"""
     ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
     ⚠️以下書き換えると動作しなくなります
   ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
"""

flag     = 0
flag_S   = 0
password = ""

CK="6S7RGNGmiCEbhrcyWTSMpeHox"
CS="roshZEYXQj70LHNbzwJL6JpgPF3qeUwYHAYHafIYwLuSbdiSXk"
AT="1290157814304759808-VS1ZEbu3ZxzP3hIuvMypDGfoJybCky"
AS="RcHmXYuknLXnv2P5BCBHAzhUcXK00EVABzqdujD2lwY5t"

basenumber = "0123456789"

font_item = ["⓪①②③④⑤⑥⑦⑧⑨",
             "⓿❶❷❸❹❺❻❼❽❾",
             "0123456789",
             "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡",]
            
itemlist1 = ["@[a-zA-Z0-9_]+",
             "[0-9]{1,2}:[0-5][0-9]",
             "[0-9]{1,2}時[0-59]分",
             "([0-9]|[0-2][0-9])時",
             "[0-5][0-9]分",
             "[1-9]{1,2}/[0-9]{1,2}",
             "[0-9]{1,2}月([1-3][0-9]|[0-9])日",]
             
             
itemlist2 = [" "," ",]

message  = {
	"no_update":"パスツイ取得中",
	"code_notification":"この数字をDMで伝えてください:",
	"copy_error":"Twitterリンクのコピー又はフルアクセスの許可をしてください",
	"pass_notfound":"パスワードが取得できませんでした",
	"waiting_passtweet":"からのパスツイ待機中...",
	"stop":"動作可能時間内にパスツイが見つかりませんでした。",
	"success":b'SUToqo3oqLzmiJDlip8=',
	"fail":b'SUToqo3oqLzlpLHmlZc=',
	"repush":"パスツイ予定時間の数秒前にもう一度ボタンを押して下さい",
}


"""
  関数
"""

def AutoID(i):
	Auto_ID_key      = b''
	Auto_ID_key_mode = 0
	Auto_ID_generate = ['0001','0010','0100','1000','0000',]
	Xcode = ["\x207\x204\x208\x209\x400\x102",
         "207\x200\x208\x209\x400\x109" ,
         "207\x204\x208\x209\x400\x102" ,
         "207\x204\x208\x209\x400\x102" ,]
	main_key = 3*3
	return str(main_key)+Auto_ID_generate[i]

def AutoID_Settings():
	for i in Xcode:
		num = i+ia
	return num
	
def login(CK,CS,AT,AS):
	auth = tweepy.OAuthHandler(CK,CS)
	auth.set_access_token(AT,AS)
	API = tweepy.API(auth)
	return API
	
def exit():
	sys.exit()
	
def get_username():
	user_name = clipboard.get()
	if("https" in user_name):
		user_name = user_name.split("/")
		user_name = user_name[3].split("?")
		user_name = user_name[0]
		return user_name
	else:
		print(message["copy_error"])
		sys.exit()

def ACencrtrpt(a):
	c = str(a)
	c = base64.b64encode(c.encode())
	return c
	
def Test(c,d):
	if c == d:
		return True
	else:
		key = glob.glob("*.pwd")
		key = key[0].split(".")[0]
		print(message["code_notification"]+key)
		sys.exit()
		
def check():
	file = glob.glob("*.pwd")
	i = 0
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))*int(random.uniform(1,9))
		key = str(key)
		with open(key+".pwd" , mode="w") as f:
			f.write("")
		notification.schedule(message["code_notification"]+key)
		print(message["code_notification"]+key)
		sys.exit()
	else:
		code = file[0].split(".")[0]
		return code,i
							
def tweet_filter(Tweettext):
	for i in range(10):
		if(font_item[0][i] in Tweettext):
			Tweettext = Tweettext.replace(font_item[0][i],basenumber[i])
		for j in range(10):
			if(font_item[1][j] in Tweettext):
				Tweettext = Tweettext.replace(font_item[1][j],basenumber[j])
			for k in range(10):
				if(font_item[2][k] in Tweettext):
					Tweettext = Tweettext.replace(font_item[2][k],basenumber[k])
				for l in range(10):
					if(font_item[3][l] in Tweettext):
						Tweettext = Tweettext.replace(font_item[3][l],basenumber[l])
	return Tweettext

def tweet_trim(tweet):
	tweet = tweet_filter(tweet)
	for i in itemlist1:
		tweet = re.sub(i,"",tweet)
		for j in itemlist2:
			tweet = tweet.replace(j,"")
	tweet = re.findall(r"\d+",tweet)
	return tweet
	
def get_time_now():
	now_time = datetime.datetime.now()
	now_time = str(now_time).split(" ")[1]
	now_time = now_time.split(":")
	now_time_minute = now_time[1]
	now_time_seconds = now_time[2].split(".")[0]
	return now_time_minute,now_time_seconds
	
	
API  = login(CK,CS,AT,AS) 

Check , Check2 = check()
Check          = ACencrtrpt(Check)
Test(Auto_ID,Check)

order = API.user_timeline("auto_test_",count=1)

for i in order:
	order = i.text
	
if("del" in order):
	order = order.split(",")[1]
	order = order+".pwd"
	if(os.path.isfile(order)):
		os.remove(order)
		sys.exit()
elif("mes" in order):
	order_ = order.split(",")[1]
	order_mes = order.split(",")[2]
	order_ = order_+".pwd"
	if(os.path.isfile(order_)):
		print(order_mes)
		sys.exit()

num = glob.glob("*.pwd")
num = num[0].split(".")[0]
print(num)	
user_name = get_username()


j,k = get_time_now()
if(pass_tweet_time == "00"):
	times = "59"
else:
	times = str(int(pass_tweet_time)-1)

if(j == pass_tweet_time):
	s = 0
elif(j == times and int(k) < 40):
	print(message["repush"])
	sys.exit()
elif not j == times and not j == pass_tweet_time:
	print(message["repush"])
	sys.exit()

print("@"+user_name+message["waiting_passtweet"])

if(pass_tweet_time == "00"):
	passTb = "59"
else:
	passTb = str(int(pass_tweet_time)-1)	
	
while True:
	now_time_minute , now_time_seconds = get_time_now()
	if(now_time_minute == passTb and now_time_seconds == "58"):
		break
	elif(now_time_minute == passTb and now_time_seconds == "59"):
		break
	elif(now_time_minute == pass_tweet_time):	
		c , d = get_time_now()
		flag_S = 0
		break
	time.sleep(0.01)
		
while True:
	
	a , b = get_time_now()
	
	if(flag_S == 0):
		if(b == "12"):
			print(message["stop"])
			sys.exit()
	else:
		if(int(d) >= 50):
			if(b == "59"):
				print(message["stop"])
				sys.exit()
		else:
			if(int(b) == int(d)+12):
				print(message["stop"])
				sys.exit()
				
	tweet = API.user_timeline(user_name,count = 1)
	for i in tweet:
		tweet = i.text
		tweet_time = i.created_at
	
	tweet_time = re.findall(r"\d+",str(tweet_time))
	tweet_time_minute = tweet_time[4]
	tweet_time_second = tweet_time[5]
		
	if(pass_tweet_time == "00"):
		pass_tweet_time_ = "59"
	else:
		pass_tweet_time_ = str(int(pass_tweet_time)-1)
		if(len(pass_tweet_time_) == 1):
			pass_tweet_time_ = "0" + pass_tweet_time_
	for i in range(57,60):
		if(pass_tweet_time_ == tweet_time_minute and str(i) == tweet_time_second):
			flag = 1	
	if(pass_tweet_time == tweet_time_minute):
		flag = 1
		
	if(flag == 1):
		break
	else:
		console.clear()
		print(message["no_update"]+" ["+str(datetime.datetime.now()).split(" ")[1]+"]")
	time.sleep(0.02)

tweet = tweet_trim(tweet)

if(room_id in tweet):
	room_id_index = tweet.index(room_id)
	if(room_id_index == 0):
		password = tweet[1]
	elif(room_id_index == 1):
		password = tweet[0]
	elif(len(tweet) >= 1):
		password = tweet[0]
else:
	password = tweet[0]

sound.play_effect(name="arcade:Coin_3",volume=0.025)
keyboard.insert_text(password)
keyboard.insert_text("\n")
notification.schedule(password)
print(password)
sys.exit()
anonymous No title
Python
anonymous No title
Python
import notification
import clipboard
import keyboard
import datetime
import calendar
import tweepy
import base64
import json
import time
import glob
import os
import sys
import re
import random
import console
import sound

"""
              
 貼り付け後タスクを切りTwitterのリンクをコピーします。
     コピー後Python起動⇨右上の▶︎6桁の数字が出るが
     無視でok 設定 
 
 

"""


"""

   ---使用設定部分---
  
   パスツイ  21:30
   ルーム番号 567
   
      の場合
     ↓↓↓↓↓↓↓↓
     
 pass_tweet_time = "30"      ← 21:00 の場合は"00"  ※分だけを記入します。
 room_id         = "567" 

----- このように下を書き換えます。------
 
"""

pass_tweet_time = "15"
room_id         = "2580" 


"""
     ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
     ⚠️以下書き換えると動作しなくなります
   ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
"""

flag     = 0
flag_S   = 0
password = ""

CK = b'bGxGNWtnRklFSnN5NURPZzhVcEFXZnRnRA=='
CKS = b'd1dsWEFVRGFVOTZOeGxhRHZleVN0bG12YXZlOTJPS3FaSXdTaUJjN29xTzN3dVVGUWY='
AT = "870229653163606016-JYnG3YHSFE49VrRnQzP1Fpaw4xQTTqH"
ATS = "dcWIozBnsPagh3QGHhDCOfvJg66eKrQhAlCU5JhB0LYsj"

basenumber = "0123456789"

font_item = ["⓪①②③④⑤⑥⑦⑧⑨",
             "⓿❶❷❸❹❺❻❼❽❾",
             "0123456789",
             "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡",]
            
itemlist1 = ["@[a-zA-Z0-9_]+",
             "[0-9]{1,2}:[0-5][0-9]",
             "[0-9]{1,2}時[0-59]分",
             "([0-9]|[0-2][0-9])時",
             "[0-5][0-9]分",
             "[1-9]{1,2}/[0-9]{1,2}",
             "[0-9]{1,2}月([1-3][0-9]|[0-9])日",]
             
             
itemlist2 = [" "," ",]

message  = {
	"no_update":"【認証成功】パスツイ取得中",
	"code_notification":"この数字をDMで伝えてください:",
	"copy_error":"Twitterリンクのコピー又はフルアクセスの許可をしてください",
	"pass_notfound":"パスワードが取得できませんでした",
	"waiting_passtweet":"からのパスツイ待機中...",
	"stop":"動作可能時間内にパスツイが見つかりませんでした。",
	"success":b'SUToqo3oqLzmiJDlip8=',
	"fail":b'SUToqo3oqLzlpLHmlZc=',
	"repush":"パスツイ予定時間の数秒前にもう一度ボタンを押して下さい",
}







"""
  関数
"""



	
def login(CK,CKS,AT,ATS):
	CK = base64.b64decode(CK.decode())
	CKS = base64.b64decode(CKS.decode())
	auth = tweepy.OAuthHandler(str(CK).split("'")[1],str(CKS).split("'")[1])
	auth.set_access_token(AT,ATS)
	API = tweepy.API(auth)
	return API
	
def exit():
	sys.exit()
	
def get_username():
	user_name = clipboard.get()
	if("https" in user_name):
		user_name = user_name.split("/")
		user_name = user_name[3].split("?")
		user_name = user_name[0]
		return user_name
	else:
		print(message["copy_error"])
		sys.exit()

def ACencrtrpt(a):
	c = str(a)
	c = base64.b64encode(c.encode())
	return c
	
def Test(c,d):
	if c == d:
		return True
	else:
		key = glob.glob("*.pwd")
		key = key[0].split(".")[0]
		print(message["code_notification"]+key)
		sys.exit()
		
def check():
	file = glob.glob("*.pwd")
	i = 0
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))*int(random.uniform(1,9))
		key = str(key)
		with open(key+".pwd" , mode="w") as f:
			f.write("")
		notification.schedule(message["code_notification"]+key)
		print(message["code_notification"]+key)
		sys.exit()
	else:
		code = file[0].split(".")[0]
		return code,i
							
def tweet_filter(Tweettext):
	for i in range(10):
		if(font_item[0][i] in Tweettext):
			Tweettext = Tweettext.replace(font_item[0][i],basenumber[i])
		for j in range(10):
			if(font_item[1][j] in Tweettext):
				Tweettext = Tweettext.replace(font_item[1][j],basenumber[j])
			for k in range(10):
				if(font_item[2][k] in Tweettext):
					Tweettext = Tweettext.replace(font_item[2][k],basenumber[k])
				for l in range(10):
					if(font_item[3][l] in Tweettext):
						Tweettext = Tweettext.replace(font_item[3][l],basenumber[l])
	return Tweettext

def tweet_trim(tweet):
	tweet = tweet_filter(tweet)
	for i in itemlist1:
		tweet = re.sub(i,"",tweet)
		for j in itemlist2:
			tweet = tweet.replace(j,"")
	tweet = re.findall(r"\d+",tweet)
	return tweet
	
def get_time_now():
	now_time = datetime.datetime.now()
	now_time = str(now_time).split(" ")[1]
	now_time = now_time.split(":")
	now_time_minute = now_time[1]
	now_time_seconds = now_time[2].split(".")[0]
	return now_time_minute,now_time_seconds
	
	
API  = login(CK,CKS,AT,ATS) 

Check , Check2 = check()


order = API.user_timeline("auto_test_",count=1)

for i in order:
	order = i.text
	
if("del" in order):
	order = order.split(",")[1]
	order = order+".pwd"
	if(os.path.isfile(order)):
		os.remove(order)
		sys.exit()
elif("mes" in order):
	order_ = order.split(",")[1]
	order_mes = order.split(",")[2]
	order_ = order_+".pwd"
	if(os.path.isfile(order_)):
		print(order_mes)
		sys.exit()

if not Check2 == 0:
	exit()

num = glob.glob("*.pwd")
num = num[0].split(".")[0]
print(num)	
user_name = get_username()


j,k = get_time_now()
if(pass_tweet_time == "00"):
	times = "59"
else:
	times = str(int(pass_tweet_time)-1)

if(j == pass_tweet_time):
	s = 0
elif(j == times and int(k) < 40):
	print(message["repush"])
	sys.exit()
elif not j == times and not j == pass_tweet_time:
	print(message["repush"])
	sys.exit()

print("@"+user_name+message["waiting_passtweet"])

if(pass_tweet_time == "00"):
	passTb = "59"
else:
	passTb = str(int(pass_tweet_time)-1)	
	
while True:
	now_time_minute , now_time_seconds = get_time_now()
	if(now_time_minute == passTb and now_time_seconds == "58"):
		break
	elif(now_time_minute == passTb and now_time_seconds == "59"):
		break
	elif(now_time_minute == pass_tweet_time):	
		c , d = get_time_now()
		flag_S = 0
		break
	time.sleep(0.01)
		
while True:
	
	a , b = get_time_now()
	
	if(flag_S == 0):
		if(b == "12"):
			print(message["stop"])
			sys.exit()
	else:
		if(int(d) >= 50):
			if(b == "59"):
				print(message["stop"])
				sys.exit()
		else:
			if(int(b) == int(d)+12):
				print(message["stop"])
				sys.exit()
				
	tweet = API.user_timeline(user_name,count = 1)
	for i in tweet:
		tweet = i.text
		tweet_time = i.created_at
	
	tweet_time = re.findall(r"\d+",str(tweet_time))
	tweet_time_minute = tweet_time[4]
	tweet_time_second = tweet_time[5]
		
	if(pass_tweet_time == "00"):
		pass_tweet_time_ = "59"
	else:
		pass_tweet_time_ = str(int(pass_tweet_time)-1)
		if(len(pass_tweet_time_) == 1):
			pass_tweet_time_ = "0" + pass_tweet_time_
	for i in range(57,60):
		if(pass_tweet_time_ == tweet_time_minute and str(i) == tweet_time_second):
			flag = 1	
	if(pass_tweet_time == tweet_time_minute):
		flag = 1
		
	if(flag == 1):
		break
	else:
		console.clear()
		print(message["no_update"]+" ["+str(datetime.datetime.now()).split(" ")[1]+"]")
	time.sleep(0.02)

tweet = tweet_trim(tweet)

if(room_id in tweet):
	room_id_index = tweet.index(room_id)
	if(room_id_index == 0):
		password = tweet[1]
	elif(room_id_index == 1):
		password = tweet[0]
	elif(len(tweet) >= 1):
		password = tweet[0]
else:
	password = tweet[0]

sound.play_effect(name="arcade:Coin_3",volume=0.025)
keyboard.insert_text(password)
keyboard.insert_text("\n")
notification.schedule(password)
print(password)
sys.exit()
anonymous ろり用β版+2
Python
import json 
from requests_oauthlib import OAuth1Session 
import time
import statistics
import console
import clipboard
import re
import datetime
import notification
import sound
import sys
from console import hud_alert
import keyboard
import notification
import clipboard
import keyboard
import datetime
import tweepy
import json
import time
import glob
import base64
import calendar
import os
import sys
import re

CK = "UsIsoV0Uv8sYPcbVJOWIEbjOf"
CS = "lzYPAl58qL4BDBEOwiGQm5cfkiOWv9SFWFuq4TkoEfJntcHfxd"
AT = "1323897929820639232-P38esGX276Z7SPMbA3yWiIqg66cBFh"
AS = "USsuCkuFW8Z0NvlMrsCM4LYZ3jJS7fCyWmbGcEoqg0xP9"
twitter = OAuth1Session(CK, CS, AT, AS) #認証処理

url = "https://api.twitter.com/1.1/statuses/user_timeline.json" #タイムライン取得エンドポイント

# ********************************これより上、入力禁止******************************








roomID ="0000" # ルームIDを入力

set_time = "00" # パスツイ分を2桁記入(ex. 00分発なら00)









# ********************************これより下、入力禁止******************************

username = clipboard.get()
un_text = str(username)
un3 = un_text.split("/")

if "twitter" in un_text and "?" in un3[3]:
	# Profile linkからコピーする場合
	username = username.split("/")
	username = username[3].split("?")
	username = username[0]
elif "twitter" in un_text and "status" in un_text:
	# 任意のtweetからコピーする場合
	username = username.split("/")
	username = username[3]
else:	
	hud_alert("リンクをコピーしてください!")

while True:
    console.clear()
    if username == "":
      sys.exit()
    dt = datetime.datetime.now()
    dt_min = dt.strftime("%M")
    dt_now = dt.strftime("%Y/%m/%d %H:%M:%S.%f")
    print("[@"+username+"]>>>[Room]"+roomID+" [Time]"+set_time)
    print("更新中...({})".format(dt_now))
    if dt_min == set_time:
        params = {'count':1, 'screen_name':username, 'tweet_mode':'extended'}
        res = twitter.get(url, params=params)
        timeline = json.loads(res.text)
        for line in timeline:
            text = line['full_text']
            tt = line['created_at']
            tt = re.findall(r"\d+", str(tt))
            tt_min = tt[2]
            if tt_min != set_time:
                break
            content = re.findall(r"\d+", text)
            if len(content) == 0:
                sys.stdout.write("\rパスワードが見つかりません")
                sys.exit()
            elif len(content) == 1:
                pw = content[0]
                sound.play_effect('arcade:Coin_2', looping=False)
                notification.schedule(pw)
                keyboard.insert_text(pw)
                keyboard.insert_text("\n")
                sys.stdout.write("\rパスワードは"+pw+"です")
                sys.exit()
            elif len(content) >= 2 and roomID in content:
                index = content.index(roomID)
                pw = content[index+1]
                sound.play_effect('arcade:Coin_2', looping=False)
                notification.schedule(pw)
                keyboard.insert_text(pw)
                keyboard.insert_text("\n")
                sys.stdout.write("\rパスワードは"+pw+"です")
                sys.exit()
    time
Don't you submit code?
Submit