原版【宇宙三基石】理论的内容:
宇宙中,永恒存在的有三件事:
1、宇宙基本规律,例如:1+1=2;E=mc^2
2、宇宙基本粒子(量子),例如:电子、光子、质子(原子可能大概也算?)
3、质量与能量。可相互转化,算作一类
其他的一切事物,比如小鸟、橘子、恒星、越王勾践剑、光缆线、草履虫等,都是基本粒子按照宇宙基本规律合成的,每样东西带有质量和能量,并且两者通过基本规律中的质能方程进行转化。
“维度”是三基石存在的空间基础。
修改版内容:
1、基本规律
分为两个大的门类:数学规律和物理规律。数学规律永恒不变,物理规律你可以简单理解为量子力学的所有规律。毕竟经典力学只是量子力学的特例。
2、基本粒子
目前已知分为两种,玻色子和费米子。当然是我已知,可能真的有其他种类我也不知道。玻色子你可以简单理解为传递,费米子的话我不是很了解,应该是用于构建的那一类粒子吧。
并且粒子有波粒二象性。
3、质量和能量。可互相转化,而且有新东西,我也不是很了解。
import random
state = {
"titCount": 10,
"breedCooldown": 0,
"bfEnergy": 100,
"bfPrey": 0,
"rsEnergy": 100,
"rsPrey": 0
}
def try_eat(energy, prey, species):
if energy < 30 and prey > 0:
prey -= 1
energy = min(energy + 50, 200)
print(f"🍗 {species} 吃掉一只储备的北长尾山雀,体力 +50(当前体力:{energy},剩余储备:{prey})")
return energy, prey
def hunt(titCount, energy, prey, species):
if energy < 10:
print(f"😴 {species} 太累了,无法捕猎。")
return titCount, energy, prey, False
hunt_result = random.choice(\[1,1,1,1,1,1,2,2,2,2\])
if hunt_result == 1:
if energy < 20:
print(f"⚡ {species} 体力不足,捕猎失败。")
energy = max(0, energy - 10)
return titCount, energy, prey, False
if titCount > 0:
titCount -= 1
prey += 1
energy = max(0, energy - 20)
print(f"🦅 {species} 捕猎成功!北长尾山雀 -1,猎物 +1,体力 -20(当前体力:{energy})")
return titCount, energy, prey, True
else:
print(f"❌ 已经没有北长尾山雀可捕了,{species} 捕猎失败。")
return titCount, energy, prey, False
else:
energy = max(0, energy - 10)
fail_reason = random.choice(\[1, 2\])
if fail_reason == 1:
print(f"🐾 {species} 扑了个空……(当前体力:{energy})")
else:
print(f"💖 {species} 被北长尾山雀萌到了,没忍心捕猎!(当前体力:{energy})")
return titCount, energy, prey, False
def try_breed(state):
if state\["titCount"\] < 3 and state\["breedCooldown"\] == 0:
increase = random.randint(2, 5)
state\["titCount"\] += increase
state\["breedCooldown"\] = 3
print(f"🐣 北长尾山雀开始繁殖!数量增加了 {increase} 只(当前总数:{state\['titCount'\]})")
def handle_conflict(state):
if state\["titCount"\] == 1 and state\["bfEnergy"\] >= 10 and state\["rsEnergy"\] >= 10:
print("⚔️ 黑足猫和锈斑豹猫同时盯上同一只北长尾山雀,发生争斗!")
state\["bfEnergy"\] = max(0, state\["bfEnergy"\] - 15)
state\["rsEnergy"\] = max(0, state\["rsEnergy"\] - 15)
state\["titCount"\] -= 1
print(f"💥 山雀趁机逃跑,双方各消耗15体力。山雀数量 -1(剩余:{state\['titCount'\]})")
return True
return False
def simulate_round(state):
# 繁殖
try_breed(state)
if state\["breedCooldown"\] > 0:
state\["breedCooldown"\] -= 1
# 随机顺序
order = \["bf", "rs"\]
if random.random() < 0.5:
order = \["rs", "bf"\]
print(f"\\n🎲 行动顺序:{'黑足猫' if order\[0\]=='bf' else '锈斑豹猫'} 先,{'黑足猫' if order\[1\]=='bf' else '锈斑豹猫'} 后")
# 进食
state\["bfEnergy"\], state\["bfPrey"\] = try_eat(state\["bfEnergy"\], state\["bfPrey"\], "黑足猫")
state\["rsEnergy"\], state\["rsPrey"\] = try_eat(state\["rsEnergy"\], state\["rsPrey"\], "锈斑豹猫")
# 冲突检查
if handle_conflict(state):
return
# 第一个捕食者
if order\[0\] == "bf":
state\["titCount"\], state\["bfEnergy"\], state\["bfPrey"\], \_ = hunt(state\["titCount"\], state\["bfEnergy"\], state\["bfPrey"\], "黑足猫")
else:
state\["titCount"\], state\["rsEnergy"\], state\["rsPrey"\], \_ = hunt(state\["titCount"\], state\["rsEnergy"\], state\["rsPrey"\], "锈斑豹猫")
if state\["titCount"\] <= 0:
print("⚠️ 北长尾山雀已暂时消失,第二个捕食者无法捕猎。")
return
# 第二个捕食者
if order\[1\] == "bf":
state\["titCount"\], state\["bfEnergy"\], state\["bfPrey"\], \_ = hunt(state\["titCount"\], state\["bfEnergy"\], state\["bfPrey"\], "黑足猫")
else:
state\["titCount"\], state\["rsEnergy"\], state\["rsPrey"\], \_ = hunt(state\["titCount"\], state\["rsEnergy"\], state\["rsPrey"\], "锈斑豹猫")
print("=== 初始状态 ===", state)
for i in range(1, 21):
print(f"\\n========== 第 {i} 回合 ==========")
simulate_round(state)
if state\["titCount"\] <= 0:
print("⚠️ 北长尾山雀已经灭绝,模拟结束。")
break
if state\["bfEnergy"\] <= 0 and state\["rsEnergy"\] <= 0:
print("⚠️ 所有捕食者都饿死了,模拟结束。")
break
print("\n=== 最终状态 ===", state)
巨好玩
【【互动视频/微恐慎入】剧情高能!死在了一场车祸里的你,会选择登上地狱列车吗?】
我和数学还是保持着那种很微妙的关系。
我不理他,他不理我,我理他了,他还是不理我。
哎呦,我突然又想到一个科幻设定啊,就是能不能穿越回去,就是把那后来丢的那40回给他找回来。诶,等等,既然我们把后来丢的那40回找回来了,那么说明哎,等等我天,时间悖论。我那个懂就是未来的人穿越过去,把丢失的那40回带到未来去吧,也就是说我们现在就是他,然后曹雪芹就失去了这后面的40回,然后他我我嘞个天呐,然后后面就有人续写了这40回,然后然后到未来又有人发明这种经常要我那个我那个时间悖论太奇妙了。也就是说曹雪芹丢的那40回是被未来的人带走了,是吧?我又想到了那个一尺之锤,日取其半,万世不竭。所以如果t嗯,不断的提前,提前,提前,最终会精确到超过毫秒级。但是很明显,未来的人去取书的时间必须要迟于曹雪芹写完这个书的时间。然后因为无穷的世界线导致无穷的时间段的提前,这样的话如果以曹雪芹刚刚写完书开始计时的话,这将会产生一个无穷收敛于零的数列,这样的话,曹雪芹在刚写完那本书的第一课就丢了那本书,导致这本书处于在和不在的量子叠加态,我嘞个,怎么又涉及到薛定谔了?