摘要: import keyword def rewrite_py_file(input_file_path, output_file_path): with open(input_file_path, 'r', encoding='utf - 8') as f: content = f.read() ne 阅读全文
posted @ 2025-05-17 19:39 XiaoguoLu 阅读(70) 评论(0) 推荐(0)
摘要: def drawsquare(num): a=int(num**0.5) for i in range(a): print(a"+ "+"+") for j in range(3): print(a"| "+"|") print(a"+ "+"+") n=eval(input("请输入正整数:")) 阅读全文
posted @ 2025-04-20 10:34 XiaoguoLu 阅读(27) 评论(0) 推荐(0)
摘要: target=425 guess=0 num=0 while guess!=target: guess=int(input("Enter a number between 1 and 1000: ")) num+=1 if guess<target: print("猜小了!") elif guess 阅读全文
posted @ 2025-03-31 23:02 XiaoguoLu 阅读(31) 评论(0) 推荐(0)
摘要: import time now = time.time() now_gmtime = time.gmtime(now) nowtime = time.strftime("%Y-%m-%d %H:%M:%S", now_gmtime) print(nowtime) import time curren 阅读全文
posted @ 2025-03-30 15:26 XiaoguoLu 阅读(30) 评论(0) 推荐(0)
摘要: Earth_weight=75 for i in range(10): Earth_weight+=0.5 MooN_weight=Earth_weight0.165 print("第{}年,地球上的体重是{},月球上的体重是{:.3f}".format(i+1,Earth_weight,MooN_ 阅读全文
posted @ 2025-03-22 16:57 XiaoguoLu 阅读(28) 评论(0) 推荐(0)
摘要: TempStr=eval('input("请输入带格式的温度值:")') if TempStr[-1] in ['C','c']: F=(eval(TempStr[0:-1])+32)1.8 print("转化后温度值为:{:.0f}F".format(F)) elif TempStr[-1] in 阅读全文
posted @ 2025-03-16 11:58 XiaoguoLu 阅读(26) 评论(0) 推荐(0)
摘要: import turtle turtle.setup(650, 350, 200, 200) turtle.penup() turtle.fd(-250) turtle.pendown() turtle.pensize(25) turtle.pencolor("purple") turtle.set 阅读全文
posted @ 2025-03-16 11:55 XiaoguoLu 阅读(30) 评论(0) 推荐(0)
摘要: str1=input("请输入一个人的名字:") str2=input("请输入一个国家的名字:") print("世界那么大,{}想去{}看看".format(str1,str2)) n=input("请输入一个整数N:") sum=0 for i in range (int(n)): sum+= 阅读全文
posted @ 2025-03-09 13:04 XiaoguoLu 阅读(28) 评论(0) 推荐(0)
摘要: 大语言模型简称大模型,是指具有庞大的参数规模和复杂程度的深度机器学习模型,通常指具有数百万到数百亿参数的神经网络模型,自1950年至今,国内诞生的大模型已经超过200个。 大模型的能力是非常强大的,例如用户可通过一段文字描述,让大模型生成一幅符合要求的图像,用户还可自行修改图片,为图片添加滤镜。如若 阅读全文
posted @ 2025-02-26 10:53 XiaoguoLu 阅读(89) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608515/202502/3608515-20250226100801924-745982139.jpg) ![](https://img2024.cnblogs.com/blog/3608515/202502/3608515-20250226101440527-626484319.jpg) ![](https://im 阅读全文
posted @ 2025-02-26 10:29 XiaoguoLu 阅读(48) 评论(0) 推荐(0)