上一页 1 ··· 5 6 7 8 9
摘要: 一、%s 占位符 templete = '%s现在的手机电量是100%' #报错 因为系统只要遇到%就会认为有占位符 templete = '%s现在的手机电量是100%%' #遇到需要打印百分号的时候,需要用两个% name = input('name:') age = input('age:') 阅读全文
posted @ 2019-06-20 02:07 番茄炒蛋548542 阅读(119) 评论(0) 推荐(0)
摘要: count=1 whlie True: while True: countt = 1 print(count) 比较 print(count) count=count + 1 count=count + 1 例子1 例子2 #循环开始的位置不一样,例子1打印的是自然数,例子2打印的是1111111. 阅读全文
posted @ 2019-06-18 20:56 番茄炒蛋548542 阅读(93) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9