Created
September 14, 2019 11:48
-
-
Save hamaguchi-amago/fcea09654b555d3aadbd95450ed10c38 to your computer and use it in GitHub Desktop.
条件分岐(if~else文 )
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
# -*- coding: utf-8 -*- | |
import sys | |
args = sys.argv | |
param = args[1] | |
if param.isdecimal(): | |
print("数字です") | |
else: | |
print("数字ではありません") | |
print("処理終了") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ブログの記事で作成しました。
興味のある方はご覧ください。
【Python】条件分岐(if、elif、else)のサンプルプログラム
https://neko-py.com/python-conditional-branch