Last active
May 24, 2021 12:51
-
-
Save Loliver1224/d561f24b36524ea4a8749813a45be51f to your computer and use it in GitHub Desktop.
コマンドプロンプトと面接練習👨💻
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 win32com.client as wincl | |
import random | |
voice = wincl.Dispatch("SAPI.SpVoice") | |
# 絶対出る質問 | |
absolute = \ | |
["自己紹介をお願いします", | |
"御社を志望した理由を教えてください", | |
"長所と短所を教えてください"] | |
# 出るかもしれない質問 | |
templates = \ | |
["弊社で具体的にどのようなことをやりたいですか", | |
"あなたの将来像を教えてください", | |
"趣味を教えてください", | |
"特技を教えてください", | |
"周りからどんな人だと言われますか", | |
"挫折経験はありますか"] | |
questions = absolute + random.sample(templates, 3) # 3: 出るかも質問の出題数 | |
for q in questions: | |
voice.Speak(q) | |
input() # Enter入力で次の質問へ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment