(*´ω`)数学的な処理はimport math を使う
【実行結果】
【解説】
まず数学的な処理をするのでimport mathをします。
円周率を表示するのでmath.piをします。
小数点切り捨てはmath.flootです。
小数点切り下げはmath.ceilです。
【コード】
import math
#
print('円周率は{}です'.format(math.pi))
print('円周率は{}です'.format(math.pi))
#
print('小数点以下を切り捨てれば{}です'.format(math.floor(math.pi)))
print('小数点以下を切り捨てれば{}です'.format(math.floor(math.pi)))
#
print('小数点以下を切り上げれば{}です'.format(math.ceil(math.pi)))
print('小数点以下を切り上げれば{}です'.format(math.ceil(math.pi)))
print(' ∧ ∧ 日々努力')
print('( ゚Д゚)')
print('海と猫が好き')