擅长:python、mysql、java
<p>通用解决方案(不基于熊猫)</p>
<pre><code>import time
top = '2018-07-25 11:14:00'
time_struct = time.strptime(top, '%Y-%m-%d %H:%M:%S')
short_top = time.strftime('%H:%M', time_struct)
print(short_top)
</code></pre>
<p>输出</p>
<pre><code>11:14
</code></pre>