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 pprint import pprint | |
from copy import deepcopy | |
from os import system | |
from time import sleep | |
# 配列の準備 | |
line = [] | |
stg = [] | |
for i in range(8): | |
line.append(i * 2 + 2) |
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 enum import Enum, auto | |
import pyxel | |
class GAMEMODE(Enum): | |
# 画面のシーンをEnumで定義します | |
Title = auto() | |
Main = auto() | |
End = auto() |
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 itertools | |
import collections | |
from copy import deepcopy | |
pai = [ | |
'mauzu_1','sozu_1','pinzu_1', | |
'mauzu_2','sozu_2','pinzu_2', | |
'mauzu_3','sozu_3','pinzu_3', | |
'mauzu_4','sozu_4','pinzu_4', | |
'mauzu_5','sozu_5','pinzu_5', |
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
# 名前をしっかりつける | |
START_NUM = 1 | |
END_NUM = 30 | |
def play_fizzbuzz(): | |
str_list = ['fizz', 'buzz', 'fizzbuzz'] | |
# 指定の数値その1から指定の数値その2まで繰り返す | |
for count in range(START_NUM,END_NUM+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
var = [1,30,'fizz','buzz','fizzbuzz',1,3,5,15] | |
def func(): | |
# 指定の数値その1から指定の数値その2まで繰り返す | |
for v in range(var[0],var[1]+1): | |
# vが15だったら | |
if v % 15 == 0: | |
print("{}:{}".format(var[5],var[4])) |
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
# 適切なコメントに切り替える | |
START_NUM = 1 # fizzbuzz開始位置 | |
END_NUM = 30 # fizzbuzz終了位置 | |
def play_fizzbuzz(): | |
# START_NUMからEND_NUMまでのfizzbuzzを出力します。 | |
str_list = ['fizz', 'buzz', 'fizzbuzz'] # 3単語までしか対応していません。 |
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
# 行間,コメント間隔を揃える | |
START_NUM = 1 # fizzbuzz開始位置 | |
END_NUM = 30 # fizzbuzz終了位置 | |
def play_fizzbuzz(): | |
# START_NUMからEND_NUMまでのfizzbuzzを出力します。 | |
str_list = ['fizz', 'buzz', 'fizzbuzz'] # 3単語までしか対応していません。 |
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
# TODOを対応してみる | |
START_NUM = 1 # fizzbuzz開始位置 | |
END_NUM = 30 # fizzbuzz終了位置 | |
# fizzbuzzに使う単語とどこで呼ばれるかを設定します。 | |
word_list = ['fizz', 'buzz', 'fizzbuzz'] # 3つまで # TODO:単語数を増やしたりできないかな? | |
number_associated_with_word = {word_list[0]: 3, word_list[1]: 5, word_list[2]: 15} # HACK:翻訳で付けた。wordに関連する数…的な名前にしたい。 | |
def play_fizzbuzz(): |
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
version: '3' | |
services: | |
teacher: | |
build: . | |
networks: | |
- study_network | |
tty: true | |
privileged: true | |
volumes: | |
- ./mount_a:/home/mount_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
FROM centos:7 | |
RUN yum install -y unbound bind-utils firewalld | |
COPY local.d /etc/unbound/local.d | |
COPY conf.d /etc/unbound/conf.d |
OlderNewer