自己敲的low到爆炸的代码
作者:互联网
age=(int)(input('烊崽今年几岁了:'))
if age>=18:
#print('成年了可以进网吧')
print(f'嘿嘿,崽子今年{age}了!可以干好多事了!嘿嘿')
else:
#print('乖乖的听话在家玩泥巴')
print(f'阿玺今年{age},快回家啊,妈妈喊你写作业')
print('系统关闭')
import random
computer=random.randint(0,2)
print(computer)
player=int(input('0-石头;1-剪刀:2-布'))
if ((player==0)and(computer==1))or((player==1)and(computer==2))or((player==2)and(computer==0)):
print('玩家是行家啊')
else:
print('人工智能果然高级啊,嘿嘿!')
sum=0
i=0
while i<=100:
if i%2==0:
sum+=i
i+=1
print(sum)
i=0
while i<5:
j=0
while j<i:
print('*',end="\t")
j+=1
print()
i+=1
i=1
while i<=9:
j=1
while j<=i:
sum=j*i
print(f'{j}*{i}={j*i}',end=" ")
j+=1
print()
i+=1
str1='I Like Yyqx'
for i in str1:
if i == 'Y':
print('遇到Y不打印')
continue
print(i)
teletubbies-c
发布了47 篇原创文章 · 获赞 11 · 访问量 7077
私信
关注
标签:嘿嘿,爆炸,代码,player,while,computer,low,print,age 来源: https://blog.csdn.net/weixin_43717681/article/details/104074781