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
#! python3 | |
# jpx_new.py | |
import requests, os, bs4 | |
# 対象ページのURLの設定 | |
url = 'http://www.jpx.co.jp/listing/stocks/new/' | |
# ダウンロードしたPDFファイルを保管するためのフォルダを作成 | |
os.makedirs('jpx_new', exist_ok=True) |
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
#! python3 | |
# PdfToTextConverter.py | |
# PDFファイルの内容を読み込んで、textファイルとして出力 | |
import os | |
import re | |
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
from pdfminer.converter import TextConverter | |
from pdfminer.layout import LAParams | |
from pdfminer.pdfpage import PDFPage |
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 os | |
import re | |
# 単語を格納するための空のリスト(単語リスト)を作成 | |
pre_words = [] | |
words = [] | |
# テキストファイルかどうかをチェックする機能の実装。 | |
# 対象となるファイルが .txt ならTrue、それ以外なら Falseを返す。 |
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
A = int(input()) | |
B = int(input()) | |
C = int(input()) | |
dic = dict(A=A, B=B, C=C) | |
dic = sorted(dic.items(), key = lambda x:x[1], reverse=True) | |
rank = {} |
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
N = list(map(int, input().split())) | |
N.sort() | |
print(N[1]) |
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
Q = int(input()) | |
if Q == 1: | |
print("ABC") | |
else: | |
print("chokudai") |
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
N = int(input()) | |
answer = [] | |
n = N | |
while divmod(n, 2) != (0, 1): | |
answer.append(2) | |
n = n // 2 | |
else: | |
answer.append(1) |
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
N = list(map(int, input().split())) | |
W = int(input()) | |
A = [int(input()) for _ in range(N[0]-1)] | |
bb = 0 | |
if N[1] <= W <= N[2]: | |
bb += 1 | |
for a in A: |
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
X = int(input()) | |
answer = (X // 10) + (X % 10) | |
print(answer) |
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
X = int(input()) | |
answer = divmod(X,10) | |
print(sum(answer)) |
OlderNewer