擅长:python、mysql、java
<p>Thanx赛博。。对我有用。
这个代码完全符合我的要求</p>
<pre><code>def match_letter(words):
count = 0
for word in words:
if len(word) >=2 and word[0] == word[-1]:
count = count + 1
return count
def main():
words = raw_input('Enter Words: ').split()
count = match_letter(words)
print 'letter matched %d ' %count
if __name__ == '__main__':
main()
</code></pre>