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
# -*- coding: utf-8 -*- | |
import pyperclip | |
import tkinter | |
from tkinter import messagebox | |
#make soft screen | |
win = tkinter.Tk() | |
win.title("CCode2") | |
win.geometry('850x450') |
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
#coding: UTF-8 | |
import random | |
#逆位置(カードの向きが反対になる事)は考えないものとします。(決して面倒だからではないですよ! | |
#全部、正位置の説明です | |
def tarot(): | |
tarot = ['愚者','魔術師','女教皇','女帝','皇帝','教皇','恋人','戦車','力','陰者','運命の輪','正義','吊るされた男','死神','節制','悪魔','塔','星','月','太陽','審判','世界',] | |
manual = ['放浪者のように欲求に忠実に行動し、未知の世界にも飛び込む無謀さと勇敢さを持つことを示します。新しい可能性や変化を求め、人の心に柔軟性をもたらしそれによって直感を鋭くさせていく。そして、何かを始めることに対して積極的な気持ちを与え不安や迷いを感じさせないようにします。更に、そこから生まれる行動は人の才能を開花させるものとなるでしょう。', | |
'人に頼らず自分を信じて単独で動いたり、何かを始めたりすることで、よい結果を引き寄せます。全ての物事の始まりや状況や無限の可能性も表し、出会いを表すカードでもあります。', | |
'知性の高さや冷静さが、プラスに働くことを示します。集中的に勉強に取り組み知力を高め、混純とした状況でも冷静に観察します。また、人の心を自然に満たし、安心感や穏やかな安らぎと清らかな判断を与えてくれます。たとえ、心が整頓されていない状況の時でも、不思議とゆとりのある思いを感じることができるよう導いてくれます。', |
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 tkinter | |
from tkinter import * | |
import pygame | |
import time | |
win = tkinter.Tk() | |
win.title("Keyboard_PIANO") | |
win.geometry('300x100') |
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 requests | |
from bs4 import BeautifulSoup | |
import re | |
print('あなたの苗字のランキングを教えて上げます') | |
def myoji_rank(): | |
myoji = (input('あなたの苗字 : '))#曲名 | |
res = requests.get('https://myoji-yurai.net/searchResult.htm?myojiKanji=' + myoji) |
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 requests, winsound | |
from bs4 import BeautifulSoup | |
import os | |
#画像のURL構造がサイトによって異なるので、エラーが起きたら微修正お願いします。よくあるエラーは24行目当たりのrequests.getです。 | |
path = ('C:/保存する画像のパス') | |
def save_image(): | |
URL = ('http://XXXX') | |
try: | |
os.mkdir("img") |
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
#coding:utf-8 | |
#声データが必要です。ここからzipでダウンロードすれば声データもあるhttps://neko288.github.io/zikan.html | |
import time | |
import winsound | |
from playsound import playsound | |
path = (r'C:/XX/XX.pyw')#このファイルのパス | |
dore_sound = input('アナウンスの声(音)を変更できます。どれにしますか?/n1.ビープ音/n2.東北ずん子(Voiceroid)/n3.きりたん(Voiceroid)/n/ |
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
# -*- coding: utf-8 -*- | |
import time | |
from playsound import playsound | |
from tqdm import tqdm | |
import time | |
path = (r'C:XX.mp3') | |
def timer(): | |
hour = input('時間を入力して : ')#ZIKAN |
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 glob | |
from os.path import join | |
import pprint | |
import re | |
path = r'C:/XXXXXXXXXXXX' | |
files = [] | |
for ext in ('*.gif', '*.png', '*.jpg', '*.jepg','*.webp',): | |
files.extend(glob.glob(join(path, ext))) | |
print(len(files)) |
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 requests, re | |
from bs4 import BeautifulSoup | |
source_url = 'https://ejje.weblio.jp/' | |
print('単語を翻訳したりできます。\n') | |
#Can Japnese ←-→ English Translate |
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
# coding: UTF-8 | |
import os | |
playlist_path = 'C:/XXX.m3u'#プレイリストを配置するパス。最後の「/test.m3u」が大事っす。 | |
path = 'D:/XX/XXX'+'/'#プレイリストにしたい音楽があるフォルダーのパス。 | |
def tukuru(songs_path): | |
with open(playlist_path, 'w',encoding='utf-8') as f: | |
f.write(songs_path) | |
songs = os.listdir(path) |
NewerOlder