摘要: 循环和字符串 循环 for循环 for x in range(x,y) for x in range(1,10,2): print(int(x)) 表示遍历1到9之间的数,步长为2 即打印1 3 5 7 9 while循环 while(条件): 执行行为 while True: print("nih 阅读全文
posted @ 2023-12-02 18:47 liuyecheng 阅读(19) 评论(0) 推荐(0)