seed=random.randn()
if seed<-2:
result=result+tit
notion_flag=1
elif seed<-1 and notion_flag==1:
nseed=random.randint(0,len(notion_list))
curr_n=notion_list[nseed]
result=result+curr_n
notion_flag=0
elif seed<2.5:
iseed=random.randint(0,len(idiom_list))
curr_i=idiom_list[iseed]
result=result+curr_i
notion_flag=1
elif seed<3:
cseed=random.randint(0,len(concate_list))
curr_c=concate_list[cseed]
result=result+curr_c
notion_flag=1
elif seed>3:
result+='\n'
notion_flag=0
while len(result)<number:
seed=random.randn()
if seed<-2:
result=result+tit
notion_flag=1
elif seed<-1 and notion_flag==1:
nseed=random.randint(0,len(notion_list))
curr_n=notion_list[nseed]
result=result+curr_n
notion_flag=0
elif seed<2.5:
iseed=random.randint(0,len(idiom_list))
curr_i=idiom_list[iseed]
result=result+curr_i
notion_flag=1
elif seed<3:
cseed=random.randint(0,len(concate_list))
curr_c=concate_list[cseed]
result=result+curr_c
notion_flag=1
elif seed>3:
result+='\n'
notion_flag=0
while len(result)<number:
seed=random.randn()
if seed<-2:
result=result+tit
notion_flag=1
elif seed<-1 and notion_flag==1:
nseed=random.randint(0,len(notion_list))
curr_n=notion_list[nseed]
result=result+curr_n
notion_flag=0
elif seed<2.5:
iseed=random.randint(0,len(idiom_list))
curr_i=idiom_list[iseed]
result=result+curr_i
notion_flag=1
elif seed<3:
cseed=random.randint(0,len(concate_list))
curr_c=concate_list[cseed]
result=result+curr_c
notion_flag=1
elif seed>3:
result+='\n'
notion_flag=0
(测试)发言一
最新推荐文章于 2023-06-11 23:09:15 发布