基本上,它表示打印一个(d)ecimal后跟一个'':''后跟一个(s)tring,其中十进制在i中,字符串在word中(实际上是(i,word) )元组)。 I am new to programming and am trying to teach myself python. I have two questions how do you use a for loop to print out the lines from a list with the line numbers then the word and then I also was wondering what the tag was to print out the three longest, shortest, and middle length words along with their actual lengths 解决方案Off the top of my head, here''s the first part: Expand|Select|Wrap|Line NumbersThat''s called "string formatting". Inside quotes the % has special meaning. Here is the documentation.Basically, it says print a (d)ecimal followed by a '': '' followed by a (s)tring, where the decimal is in i and the string is in word (actually the (i, word) tuple). 这篇关于两个python初学者问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 18:25