科学の箱

科学・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

tensorflowをpipでインストールするときのオプション

tensorflow環境を構築するときにはpipを利用すると簡単である。pipの簡単な使い方としてはinstallオプションを指定すればよい。 pip install tensoflow しかしこのオ …

no image

K近傍法でデータを分析

K近傍法の手順 データ読み込み EDA スケーリング K選択前処理 モデル評価 K選択 モデル構築   K近傍法でデータを分析する際にはseabornのpairplotが役に立つ df = …

no image

bing image searchをpythonで利用

Azureへの登録+Bing Search APIを登録についてはこちらのサイトが詳しい。 https://qiita.com/ysdyt/items/49e99416079546b65dfc ただし …

no image

requests.exceptions.SSLError: HTTPSConnectionPoolの対応方法

エラー raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host=&#8217 …

no image

SIGNATE お弁当の需要予測-3

Seabornを利用してデータをビジュアル化してみる。 まずは売り上げの分布図から sns.distplot(d_train[‘y’], kde=False, rug=False, bins=50) …

2018年2月
月 火 水 木 金 土 日
« 1月   3月 »
 1234
567891011
12131415161718
19202122232425
262728  

side bar top



アーカイブ

カテゴリー