Python面試題

https://www.imooc.com/article/36931       1.python字符串格式化中,%s和.format的主要區別是什麼 python用一個tuple將多個值傳遞給模板,每個值對應一個格式符 print(「 my name is %s ,im %d year old」%("gaoxu",19)) 自從python2.6開始,新增了一種格式化字符串的函數str.for
相關文章
相關標籤/搜索