python " />

扫描二维码下载沐宇APP

沐宇

微信扫码使用沐宇小程序

沐宇

python鎬庝箞鍒ゆ柇涓変釜鏁扮殑澶у皬

扬州沐宇科技
2024-03-01 13:19:09
python

鍙互浣跨敤濡備笅浠g爜鏉ュ垽鏂笁涓暟鐨勫ぇ灏忥細

a = int(input("璇疯緭鍏ョ涓€涓暣鏁帮細"))
b = int(input("璇疯緭鍏ョ浜屼釜鏁存暟锛?quot;))
c = int(input("璇疯緭鍏ョ涓変釜鏁存暟锛?quot;))

if a > b and a > c:
    print(f"{a}鏈€澶?quot;)
elif b > a and b > c:
    print(f"{b}鏈€澶?quot;)
else:
    print(f"{c}鏈€澶?quot;)

鐢ㄦ埛杈撳叆涓変釜鏁存暟鍚庯紝绋嬪簭浼氭瘮杈冭繖涓変釜鏁扮殑澶у皬锛屽苟杈撳嚭鏈€澶х殑鏁般€?/p>

扫码添加客服微信