上一页 1 ··· 370 371 372 373 374 375 376 377 378 ··· 407 下一页
摘要: 1、 #include <stdio.h> int main(void) { int label; int sum = 0; int counts = 0; do { int i; puts("please input the number i."); printf("i = "); scanf(" 阅读全文
posted @ 2021-01-04 14:07 小鲨鱼2018 阅读(1664) 评论(0) 推荐(0)
摘要: 1、 #include <stdio.h> int main(void) { int i; do { puts("please input value of i (0/1/2)"); printf("i = "); scanf("%d", &i); } while (i < 0 || i > 2); 阅读全文
posted @ 2021-01-04 13:09 小鲨鱼2018 阅读(138) 评论(0) 推荐(0)
摘要: 1、 #include <stdio.h> int main(void) { int x; do { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); if (i % 2 == 0) puts("eve 阅读全文
posted @ 2021-01-04 11:46 小鲨鱼2018 阅读(1074) 评论(0) 推荐(0)
摘要: 1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); if (i % 3 == 0) puts("can be devided" 阅读全文
posted @ 2021-01-03 23:40 小鲨鱼2018 阅读(979) 评论(0) 推荐(0)
摘要: >>> tag = True >>> test1 = {} >>> type(test1) <class 'dict'> >>> while tag: name = input("please input your name: ") mountain = input("which mountain 阅读全文
posted @ 2021-01-02 19:46 小鲨鱼2018 阅读(127) 评论(0) 推荐(0)
摘要: 1、 >>> test1 = ["aa","bb","aa","cc","aa","cc","dd","ee"] >>> test1 ['aa', 'bb', 'aa', 'cc', 'aa', 'cc', 'dd', 'ee'] >>> "aa& 阅读全文
posted @ 2021-01-02 19:10 小鲨鱼2018 阅读(630) 评论(0) 推荐(0)
摘要: 1、 >>> a = {} >>> while a != "quit": a = input("please input an incredient:") if a != "quit": print(f"{a} will be added!!") please input an incredient 阅读全文
posted @ 2021-01-02 14:28 小鲨鱼2018 阅读(96) 评论(0) 推荐(0)
摘要: >>> while True: a = input("please input something:") if a == "ab": break else: print(f"you had input {a}.") please input something:100 you had input 1 阅读全文
posted @ 2021-01-02 13:41 小鲨鱼2018 阅读(151) 评论(0) 推荐(0)
摘要: 1、 >>> tag = True >>> while tag: a = input("please input something : ") if a == "quit": tag = False else: print(a) please input something : 100 100 pl 阅读全文
posted @ 2021-01-02 13:20 小鲨鱼2018 阅读(319) 评论(0) 推荐(0)
摘要: 1、 >>> a = "" >>> while a != "quit": a = input("please input a str or 'quit' to leave: ") print(a) please input a str or 'quit' to leave: 100 100 plea 阅读全文
posted @ 2021-01-02 12:38 小鲨鱼2018 阅读(113) 评论(0) 推荐(0)
上一页 1 ··· 370 371 372 373 374 375 376 377 378 ··· 407 下一页