摘要: 4.1 点击查看代码 target = 425 guess = 0 times=0 while guess !=target: guess=eval(input('请输入一个猜测的整数(1至1000):')) if guess > target: print("猜大了") times+=1 elif 阅读全文
posted @ 2025-04-06 18:14 bolun123 阅读(25) 评论(0) 推荐(0)
摘要: 习题3.6 点击查看代码 import time for i in range(101): print("\rStarting...",end="") time.sleep(0.1) print("Done!") 习题3.7 点击查看代码 while True: for i in ["/","-", 阅读全文
posted @ 2025-03-30 20:47 bolun123 阅读(9) 评论(0) 推荐(0)
摘要: 习题3.1 点击查看代码 earth=50.000 for i in range(10): earth+=0.5 moon=earth*0.165 print("在地球的体重为:{:.3f}kg,在月球上的体重为:{:.3f}kg.".format(earth,moon)) 习题3.2 点击查看代码 阅读全文
posted @ 2025-03-23 22:12 bolun123 阅读(7) 评论(0) 推荐(0)
摘要: 习题2.1 点击查看代码 TempStr = eval('input("请输入带符号的温度值:")') #TempStr1=str(TempStr) #Chapter=input("请输入温度的符号") if TempStr[-1] in ['F','f']: C=(eval(TempStr[0:- 阅读全文
posted @ 2025-03-16 22:03 bolun123 阅读(22) 评论(0) 推荐(0)
摘要: 习题1.1 点击查看代码 ` str1 = input ("请输入一个人的名字:") str2 = input ("请输入一个国家名字:") print ("世界这么大,{}想去{}看看.".format(str1,str2)) ` 习题1.2 点击查看代码 ` n= input("请输入整数N:" 阅读全文
posted @ 2025-03-09 20:24 bolun123 阅读(6) 评论(0) 推荐(0)
摘要: 以下为一串python的五星红旗代码供参考 点击查看代码 `import turtle import math # 设置画布 screen = turtle.Screen() screen.setup(480, 320) # 设置分辨率为 480x320 screen.bgcolor("white" 阅读全文
posted @ 2025-03-09 20:14 bolun123 阅读(355) 评论(0) 推荐(0)
摘要: 1.8图例代码 点击查看代码 `from turtle import * color('red','yellow') begin_fill() while True: forward(200) left(170) if abs(pos()) < 1: break end_fill() done()` 阅读全文
posted @ 2025-03-09 20:02 bolun123 阅读(8) 评论(0) 推荐(0)
摘要: 大模型通过统计学习与深度神经网络的结合,实现了从数据中提取复杂模式的能力,其发展史反映了算力、算法和数据的协同进化。 尽管已取得显著进展,但其本质仍是经验驱动的“黑箱”,未来需在理论突破、多模态融合、伦理治理等方面持续探索。 从2021年至今人们已经开发诸多大模型比如Kimihttps://kimi 阅读全文
posted @ 2025-03-02 15:49 bolun123 阅读(22) 评论(0) 推荐(0)
摘要: 点击查看代码 from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if abs(pos()) < 1: break end_fill() ![](https://img2024. 阅读全文
posted @ 2025-02-25 08:45 bolun123 阅读(9) 评论(0) 推荐(0)