2018-01-01から1年間の記事一覧
■準備 ・excel(mac) ・環境設定>リボンとツールバー>メインタブ選択>開発にチェックを入れ適用■マクロ ・ブック1の一部をコピー ・ブック2を開き、ペースト■なかみ Sub Macro1() ' ' Macro1 Macro ' ' Range("A1:A5").Select Selection.Copy Workbooks.Op…
checkio home MonkeyTyping def count_words(text, words): cnt = 0 for w in words: if (w in text.lower()) == True: cnt += 1 else: continue #pass return cnt if __name__ == '__main__': #These "asserts" using only for self-checking and not neces…
checkio home Non-Unique Elements def checkio(data): list = data list_cnt = [] for n in list: if list.count(n) > 1: list_cnt.append(n) else: continue return list_cnt #Some hints #You can use list.count(element) method for counting. #Create …
checkio home theMostWantedLetter from collections import Counter import re def checkio(text): #1.文字列操作(データ加工) str = text.lower() #大文字から小文字 str2 = str.replace(" ", "") #空白を削除 str3 = re.sub(r'[!-/:-@[-`{-~]', "", str2)…
checkio home housepassword import re def checkio(data): if len(data) >= 10 and re.search("[0-9]",data) and re.search("[a-z]",data) and re.search("[A-Z]",data): return True else: return False if __name__ == '__main__': #These "asserts" usin…
アイカツスターズの曲で打線組んだアイカツ(いちご・あかり世代)は含んでいません。 いい曲順ではなくチームとしての打線組みです。■打線 1(中) スタートライン! www.youtube.com2(二) アニマルカーニバル www.youtube.com3(右) MUSIC of DREAM!!! www.yout…
■手番 1.CLIよりクローンするURLを取得 $ git remote -v heroku https://git.heroku.com/hoge.git (fetch) heroku https://git.heroku.com/hoge.git (push)2.Sourcetreeより「URLからクローン」でクローンする。 ※必要に応じて事前に認証トークンやAPIキーを…
下記参照元のチュートリアルメモ - //Python 3.6.4 //venvをつかったローカル環境構築(mac) //pip install django==1.11 - ・virtual environment python3 -m venv myvenv //ディレクトリ作成 source myvenv/bin/activate //アクティベート・Djangoインスト…
6.1 UI部品の配置~~~~~~~~~~~~~~object library ・label (UILabelクラス) ・button (UIButtonクラス)UI部品はクラス152p view controller scene →1画面単位 6.2 Auto Layout~~~~~~~~~~~~~~ Auto Layoutは、UI部品の配置場所に対して、 「ルール付け(constra…