您现在的位置是:主页 > news > 肥城网站建设流程/网络广告是什么

肥城网站建设流程/网络广告是什么

admin2025/6/13 20:07:32news

简介肥城网站建设流程,网络广告是什么,wordpress分页url设置,网站权重值在较长时间内是一定的页面优化赶紧写上 ,一定有人着急要看,啊哈哈哈哈,嘻嘻 哈哈 不枉我起了个大早 利用什么碎片时间啊,真正能深入学习的,是需要大段大段不被打断的时间 1. 完全实现了如下几种输入数据; 2. 遗留:最后一个el…

肥城网站建设流程,网络广告是什么,wordpress分页url设置,网站权重值在较长时间内是一定的页面优化赶紧写上 ,一定有人着急要看,啊哈哈哈哈,嘻嘻 哈哈 不枉我起了个大早 利用什么碎片时间啊,真正能深入学习的,是需要大段大段不被打断的时间 1. 完全实现了如下几种输入数据; 2. 遗留:最后一个el…

赶紧写上 ,一定有人着急要看,啊哈哈哈哈,嘻嘻 哈哈

不枉我起了个大早

利用什么碎片时间啊,真正能深入学习的,是需要大段大段不被打断的时间

 

 

1. 完全实现了如下几种输入数据;

2. 遗留:最后一个elif,而不是else,不知道咋写,先庆功;

 

 

directions = ('north', 'south', 'east', 'west', 'down', 'up', 'left', 'right', 'back')
verbs = ('go', 'stop', 'kill', 'eat', 'open')
stop_words = ('the', 'in', 'of', 'from', 'at', 'it','the', 'The', 'tHe', 'thE')
nouns = ('door', 'bear', 'princess', 'cabinet')def scan(sentence):a= sentence.split()direction = ('direction')verb = ('verb')stop = ('stop')noun = ('noun')stop = ('stop')senten = []for x in a:if x in directions:senten.append((direction,x))elif x in verbs:senten.append((verb,x))elif x in stop_words:senten.append((stop,x))elif x in nouns:senten.append((noun, x))elif x.isupper():senten.append(('error',x))elif x not in (directions, stop_words, nouns):try:senten.append(('number', int(x)))except ValueError:senten.append(('error', x))return senten

  

转载于:https://www.cnblogs.com/vivivi/p/7095843.html