用户:
幺幺其查看:0 回复:3 评论:0 创建时间:2024-01-28T12:15:15
【作品展示】

【作品介绍】
?
【作品源代码】
print('end.end=(f18 = 运行')
print('版本号:1.0.4')
h = []
m = ''
df = '?'
k = 0
jieBa = '0'
randOm = '0'
s = 0
dfff = 0
fddd = 0
bb = ''
ftf = 0
IF = '0'
while True:
a = input('>>>')
h.append(a)
if a[0] == '#':
print('以上为注释,不会运行^V^')
if a[0] == '*':
print('以上为特殊注释,会输出^V^')
if a == 'end.end=(f18':
break
for i in h:
if i[0] == '输' and i[1] == '出':
if i[4] == '随' and i[5] == '机' and i[6] == '数':
if s != 0:
rint(s)
else:
print('未生成数')
else:
for x in range(len(i)-2):
print(i[x+2], end='')
print('')
elif i[0] == '输' and i[1] == '入':
if i[2] != ' ':
m = ''
for x in range(len(i)-2):
m = m+i[x+2]
d = input(m+':')
elif i[0] == '如' and i[1] == '果':
if i[2] == '输' and i[3] == '入' and ((i[4] == '等' and i[5] == '于') or (i[4] == '=' and i[5] == '=')):
if m != '':
if m == i[6:len(i)+1]:
df = 'True'
IF = '1'
else:
df = 'False'
IF = '1'
else:
print('前面未输入')
IF = '0'
if i[2] == '随' and i[3] == '机' and i[4] == '数' and ((i[5] == '=' and i[6] == '=') or (i[5] == '等' and i[6] == '于')):
if randOm != '0':
if s == i[7:len(i)+1]:
df = 'True'
IF = '1'
else:
df = 'False'
IF = '1'
else:
print('未导入随机库')
if i[2] == '分' and i[3] == '词' and i[4] == '含':
if jieBa != '0':
if i[5:len(i)+1] in bb:
df = 'True'
IF = '1'
else:
df = 'False'
IF = '1'
else:
print('未导入结巴库')
elif i[0] == ' ' and a[1] == ' ':
if df == 'True' or df == 'Trues':
if i[2] == '输' and i[3] == '出':
if i[4] == '随' and i[5] == '机' and i[6] == '数':
if s != 0:
print(s)
else:
print('未生成数')
else:
for x in range(len(i)-2):
print(i[x+2], end='')
print('')
elif i[2] == '输' and i[3] == '入':
if i[2] != ' ':
m = ''
for x in range(len(i)-2):
m = m+i[x+2]
d = input(m+':')
else:
continue
elif i[0] == '导' and i[1] == '入':
if i[2] == '结' and i[3] == '巴':
import jieba
jieBa = '1'
elif i[2] == '随' and i[3] == '机':
import random
randOm = '1'
elif i[0] == '生' and i[1] == '成' and i[2] == '数':
if randOm == '1':
ftf = int(i[3:7])
dfff = ftf[0]*10+ftf[1]
fddd = ftf[2]*10+ftf[3]
s = random.randint(dfff, fddd)
else:
print('未导入随机库')
elif i[0] == '分' and i[1] == '词':
if i[2] == '输' and i[3] == '入':
if m != '':
bb = jieBa.lcut(m)
else:
m = input()
bb = jieBa.lcut(m)
else:
if jieBa == '1':
bb = jieBa.lcut(i[2:ilen(i)+1])
else:
print('未导入结巴库')
elif i[0] == '*':
print('特殊注释:', i)
elif (i[0] == '否' and i[1] == '则') and (IF == '1' and df == 'False'):
df = 'Trues'
IF = '0'
elif (i[0] == '否' and i[1] == '则' and i[2] == '如' and i[3] == '果') and (IF == '1' and df == 'False'):
if m == i[4:len(i)+1]:
df = 'True'
IF = '1'
else:
df = 'False'
IF = '1'
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn