Python If-Elif-Else 结构:外星人颜色得分
alien_color = 'green'
if alien_color == 'green': print('玩家获得了 5 分') elif alien_color == 'yellow': print('玩家获得了 10 分') else: print('玩家获得了 15 分')
原文地址: https://www.cveoy.top/t/topic/lFCp 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
alien_color = 'green'
if alien_color == 'green': print('玩家获得了 5 分') elif alien_color == 'yellow': print('玩家获得了 10 分') else: print('玩家获得了 15 分')
原文地址: https://www.cveoy.top/t/topic/lFCp 著作权归作者所有。请勿转载和采集!