正在加载图片...
中国科学技术大学电子工程与信息科学系 ©2020 print("ur the best!") else: print("en heng") https://www.runoob.com/python/python-if-statement.html 写一段代码,如果输入的口令是“abc”,显示“OK”,否则显示“your are denied.” 1.3.2 循环语句 教学实验 条件代码 如果条件为true 条件 如果条件为false www.runoob.com [例:for循环] for letter in"My Python": print("current:",letter) [例:while循环] i=0 while(i<=10): ifi%3=0: print("multiple of 3,"i) else: print("not multiple of 3,"i) i=i+1 network @ustc.edu.cn中国科学技术大学电子工程与信息科学系 ©2020 network@ustc.edu.cn print("u r the best!") else: print("en heng") 参考 https://www.runoob.com/python/python-if-statement.html 写一段代码,如果输入的口令是“abc”,显示“OK”,否则显示“your are denied.” 1.3.2 循环语句 [例:for 循环] for letter in "My Python": print("current:",letter) [例:while 循环] i = 0 while (i<=10): if i % 3 == 0: print("multiple of 3, ",i) else: print("not multiple of 3,",i) i = i + 1
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有