1.编程口算题输答案后判断对错,口算口算Python编程语句怎么写?
编程口算题输答案后判断对错,源码听书微信小程序源码Python编程语句怎么写?
import randomflag = ["+",题代omcat 源码分析"-","×","÷"]
a1 = random.randint(0,9)
a2 = random.randint(0,9)
i_flag = random.randint(0,3)
str = f"{ a1} { flag[i_flag]} { a2} = "
result = None
if flag[i_flag] == "+":
result = a1 + a2
elif flag[i_flag] == "-":
result = a1 - a2
elif flag[i_flag] == "×":
result = a1 * a2
elif flag[i_flag] == "÷":
result = a1 / a2
else:
pass
ins = input(str)
if f"{ result}" == ins:
print(f"{ ins} is correct! ")
else:
print(f"{ ins} is wrong, right answer is : { str}{ result}")
2025-01-31 02:361954人浏览
2025-01-31 02:24777人浏览
2025-01-31 02:182334人浏览
2025-01-31 00:412443人浏览
2025-01-31 00:34965人浏览
2025-01-31 00:21274人浏览
江西南昌县重大交通事故已造成19人死亡20人受伤总台记者从南昌县委宣传部了解到,南昌县1月8日发生的重大交通事故目前已造成19人死亡20人受伤。2023年1月8日0时49分许,江西省南昌县幽兰镇S51
1.֧??С?????Դ??2.多用户小程序商城源码.net core C#_OctShop3.微信小程序反编译4.校园小情书微信小程序源码/社区小程序前后端开源/校园表白墙交友小程序5.微信小程序官
1.安卓手机怎么连airpods2.怎样将电网频率用于多媒体取证?面向音频取证的电网频率检测与增强有源码3.联通光猫如何进入超级管理员4.求C语言小游戏源程序5.在手机中制作边IMY格式的铃声闪烁,振