擅长:python、mysql、java
<p>作为一个快速解决方案-见下文</p>
<pre><code>username = input()
with open('clientRecords.txt', 'r') as clientsfile:
for line in clientsfile.readline():
if line.startswith("%s, " % username):
print("Cient %s found: %s" % (username, line[len(username) + 2:]))
break
</code></pre>