%r用rper()方法处理对象 %s用str()方法处理对象相同结果 有些情况下,两者处理的结果是一样的,比如说处理int型对象。例: print(‘I am %s years old.’ % 22) print(‘I am %r years old.’ % 22) 返回结果: I am 22 ye....
The round carousel consists of n figures of animals. Figures are numbered from 1 to n in order of the carousel moving. Thus, after the n-th figure the figure wi...
There were n types of swords in the theater basement which had been used during the plays. Moreover there were exactly x swords of each type. y people have brok...
题目链接 Sergei B., the young coach of Pokemons, has found the big house which consists of n flats ordered in a row from left to right. It is possible to enter eac...