當前位置:編程學習大全網 - 電腦編程 - python輸出概率?

python輸出概率?

我幫妳處理成列表和加%的列表,還有直接輸出了

strs = '‘5;5;25;25;25;25;25;25;25;25;25;25;160;160;160;160;160;2900;2900;3140’'

dis = strs.lstrip('‘').rstrip('’').split(';')

print(dis)

dis = list(map(lambda x:x+'%', dis))

print(dis)

for i in dis:

 print(i, end='\t')

  • 上一篇:php,webhtml5哪個工資高
  • 下一篇:海康威視消防應急廣播電話壹體機怎麽接線
  • copyright 2024編程學習大全網