科学の箱

科学・IT・登山の話題

Python

automated the boring

投稿日:

まずは肩慣らし

print(‘Hello world!’)
print(‘What is your name?’) # ask for their name
myName = input()
print(‘It is good to meet you, ‘ + myName)
print(‘The length of your name is:’)
print(len(myName))
print(‘What is your age?’) # ask for their age
myAge = input()
print(‘You will be ‘ + str(int(myAge) + 1) + ‘ in a year.’)

python環境は設定をする。

python.exeに対してパスを通すか、python.exeのフォルダに移動しておく。

pythonでは余計なインデントは入れない。これ重要。

メタ情報

inarticle



メタ情報

inarticle



-Python
-

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

GCP google translatorの利用

こちらが詳しい https://cloud.google.com/translate/docs/reference/libraries#client-libraries-usage-python &n …

no image

Python + Slack Bot – 3

さてリアルタイムでとりあえずうまくいったので、もう少し違うサンプルコードを試してみる。 参考にしたのはこちら。 https://www.fullstackpython.com/blog/build-f …

no image

カテゴリデータのビジュアル

カテゴリ別データのビジュアル 参考)https://www.kaggle.com/omarelgabry/a-journey-through-titanic?scriptVersionId=44779 …

no image

データ分析で理解しておくべきPythonのデータ構造

Pythonでデータ分析を行う際には基本のデータ構造を理解しておく必要がある。 scikit-learnなどのフレームワークは特定のデータ構造を入力とすることを前提にしている。用意したデータがフレーム …

no image

特定のパッケージのためのgitignoreを作成したい

https://gitignore.ioを開く パッケージ名を入力 Createをクリック Related posts:automated the boring – day5kaggle Titani …

2018年2月
« 1月   3月 »
 1234
567891011
12131415161718
19202122232425
262728  

side bar top



アーカイブ

カテゴリー