会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pengshuaishuai
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2025年5月25日
十三周
摘要: import random def printIntro(): print("这个程序模拟两个选手A和B的乒乓球竞技比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs(): a = float(input("请输入选手A的能力值(0-1):
阅读全文
posted @ 2025-05-25 19:49 彭66
阅读(39)
评论(0)
推荐(0)
2025年5月18日
12周
摘要: 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-18 16:09 彭66
阅读(29)
评论(0)
推荐(0)
2025年4月20日
第八周
摘要: def print_tic_tac_toe_grid(width): # 检查输入是否为奇数 if width % 2 == 0: print("请输入一个奇数作为田字格的宽度。") return # 打印上半部分的田字格 for i in range((width + 1) // 2): # 打印
阅读全文
posted @ 2025-04-20 14:09 彭66
阅读(18)
评论(0)
推荐(0)
2025年4月6日
第六周
摘要: num=425 guess=0 i=0 while guess!=num: guess=eval(input("请输入1-1000的数字")) if guess>num: i+=1 elif guess<num: i+=1 else: i+=1 print(i) str_s=input(" ") n
阅读全文
posted @ 2025-04-06 19:59 彭66
阅读(29)
评论(0)
推荐(0)
2025年3月30日
fifth week
摘要: 3.19 import time current_time=time.time() local_time=time.localtime(current_time) formatted_time=time.strftime("%Y-%m-%d",local_time) print("当前日期(年-月-
阅读全文
posted @ 2025-03-30 11:53 彭66
阅读(13)
评论(0)
推荐(0)
2025年3月23日
第四周
摘要: height def weightup(weightup): weight = 70 for i in range(1,11): weight=weight+weightup return weight df=0.5 e=weightup(df)9.8 m=weightup(df)9.8*0.165
阅读全文
posted @ 2025-03-23 10:54 彭66
阅读(17)
评论(0)
推荐(0)
上一页
1
2
公告