摘要:
Implement the MasterMind game. The computer “thinks” a number with 4 different digits. You guess which digits. For every digit that matched both in va 阅读全文
posted @ 2022-05-21 14:34
渐远的围城
阅读(60)
评论(0)
推荐(0)
摘要:
Exercise: Number guessing game Level 0 • Using the random module the computer “thinks” about a whole number between 1 and 20. • The user has to guess 阅读全文
posted @ 2022-05-21 13:11
渐远的围城
阅读(79)
评论(0)
推荐(0)
摘要:
Python编程PTA题解大全——索引 https://blog.csdn.net/qq_43479432/article/details/105012586 输出华氏-摄氏温度转换表 Description:输入2个正整数lower和upper(lower≤upper≤100),请输出一张取值范围 阅读全文
posted @ 2022-05-21 11:19
渐远的围城
阅读(266)
评论(0)
推荐(0)
摘要:
支线 d = 345.678 s = "hello!" i = 1234 # "%"表示进行格式化输出,"%"之后的内容为格式的定义。 print("%f" % d)# "f"表示格式化输出浮点数。 print("%9.2f" % d)#"9.2"中的9表示输出的长度,2表示小数点后的位数 prin 阅读全文
posted @ 2022-05-21 10:27
渐远的围城
阅读(40)
评论(0)
推荐(0)

浙公网安备 33010602011771号