python—返回元組中值為value的元素的個(gè)數(shù)
提問人:楊紫紅發(fā)布時(shí)間:2020-11-20
name = "Peter Zhang"
age = 25
print "Name: %s; Age: %d" % (name, age)
# Name: Peter Zhang; Age: 25
函數(shù)如下:
count(value) ---返回元組中值為value的元素的個(gè)數(shù)
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>