https://github.com/matsutaku/pythontotrial
Trial tasks of training Python3 coding.
https://github.com/matsutaku/pythontotrial
Last synced: 7 months ago
JSON representation
Trial tasks of training Python3 coding.
- Host: GitHub
- URL: https://github.com/matsutaku/pythontotrial
- Owner: MatsuTaku
- Created: 2018-04-03T08:21:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T08:41:44.000Z (almost 5 years ago)
- Last Synced: 2025-03-14T19:56:04.157Z (7 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python 学習プログラム
第一回勉強会の課題です.
全8問をPythonで実装し,採点プログラムで採点してみましょう.## 環境
- Python(Python3) コマンドが実行可能なPC
- WindowsPCへのPython環境のインストールは,こちらを参照して下さい
[Pythonをインストールする(for Windows) - Qiita](https://qiita.com/taiponrock/items/f574dd2cddf8851fb02c)## コマンドプロンプト(CMD)
WindowsのCLIです.本プログラムは,こちらのCLI上での実行を想定しています.### 起動方法
1. __Windows システムツール -> コマンド プロンプト__### ディレクトリの移動
```
$ cd [directory_path]
```
ディレクトリパスは,ファイルエクスプローラからディレクトリをCMDにドラッグ&ドロップで記述できます.## プログラミングのすすめ
問題単位で実行しながらプログラミングをすると,デバッグしやすいですね.
以下のように実行時処理を書きながら作業すると,捗ると思います.
```prac1.py
...
def getLangName():
# 問題の処理if __name__ == '__main__':
text = getLangName()
print(text)
```
CMDで以下のように実行します.
```
$ python prac1.py
> Python3
```## 採点プログラムの使い方
1. __prac[number].py__ の問題を解く
2. コマンドプロンプト(CMD)上で,問題のあるディレクトリに移動
3. 採点プログラムを実行
```
$ python judge.py [number]
```
4. 各caseについて正誤判定が行われる
```
例
$ python judge.py 3
case 1 : accept
case 2 : accept
case 3 : accept
case 4 : accept
case 5 : accept
case 6 : accept
Clear!
```