Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
表示
レイアウト
分割
統合
ライブエディター
空白の変更を非表示
未変更行を折りたたむ
折り返しなし
比較精度
スマート
構文
なし
外観を変更
処理
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Untitled diff
作成日
5 か月前
差分は期限切れになりません
クリア
エクスポート
共有
2つのテキストは同一です
これら2つのテキストの間に違いはありません
0 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
9 行
すべてコピー
0 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
9 行
すべてコピー
def calculate_user_discount(user: User, order: Order) -> Decimal:
def calculate_user_discount(user: User, order: Order) -> Decimal:
if user.is_premium and order.total > 1000:
if user.is_premium and order.total > 1000:
return order.total * Decimal('0.15')
return order.total * Decimal('0.15')
elif user.is_premium:
elif user.is_premium:
return order.total * Decimal('0.10')
return order.total * Decimal('0.10')
elif order.total > 1000:
elif order.total > 1000:
return order.total * Decimal('0.05')
return order.total * Decimal('0.05')
else:
else:
return Decimal('0')
return Decimal('0')
保存された差分
原文
ファイルを開く
def calculate_user_discount(user: User, order: Order) -> Decimal: if user.is_premium and order.total > 1000: return order.total * Decimal('0.15') elif user.is_premium: return order.total * Decimal('0.10') elif order.total > 1000: return order.total * Decimal('0.05') else: return Decimal('0')
変更されたテキスト
ファイルを開く
def calculate_user_discount(user: User, order: Order) -> Decimal: if user.is_premium and order.total > 1000: return order.total * Decimal('0.15') elif user.is_premium: return order.total * Decimal('0.10') elif order.total > 1000: return order.total * Decimal('0.05') else: return Decimal('0')
違いを見つける