摘要: def hangman(word): wrong=0 stages=["", " ", "| | ", "| O ", "| /|\ ", "| / \ ", "| "] rletters=list(word) board=["_"]*len(word) win=False print("Welco 阅读全文
posted @ 2022-11-26 11:00 【小桥流水人家】 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1、循环(loop) 1.1for循环:语法“for[变量名] in [可迭代对象名]:[指令]" name="xiaojiayu" for char in name: char=char.upper() print(char) name=["xiao","jia","yu"] i=0 for ch 阅读全文
posted @ 2022-11-26 07:29 【小桥流水人家】 阅读(43) 评论(0) 推荐(0) 编辑