LoginSignup
0
0

[ Python ] データ型

Last updated at Posted at 2024-05-18

■ はじめに

Python勉強につき、メモを残します。
下記内容は、備忘録レベルで書き殴ってますので間違い等あるかもしれません。
参考にする際にはその点ご認識のほどお願いします〜。。

■ 型

・文字列
・整数
・浮動小数点数
・真偽値

データ型
# 文字列(シングル, ダブルクォーテーションどちらでも可能)
char = 'sample'

# 整数(桁数制限なし)
number = 12345678901234567890

# 浮動小数点数(64bit(15~17桁)まで代入可能)
formatted_number = 1.2345678901234567890

# 真偽値(True, False)
boolean = True
 
# 表示結果
print(char)
# sample

print(number)
# 12345678901234567890

print(formatted_number)
# 1.2345678901234567

print(boolean)
# True

■ 参照

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0