摘要:
【九九乘法表】 i = 0 #while 九九乘法表 j = 0 while i < 9: i += 1 while j<9: j += 1 sum = i + j total="%s + %s = %s"% (i,j,sum) print(total,end=" ") if i == j: j = 阅读全文
摘要:
【字符串格式化】 Python的字符串格式化有两种方式: 百分号方式、format方式 百分号的方式相对来说比较老,而format方式则是比较先进的方式,企图替换古老的方式,目前两者并存。[PEP-3101] This PEP proposes a new system for built-in s 阅读全文