From 83bbae19e31bcda28efa1ba2da3c1054c2727e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E5=B2=B1=E8=BE=89?= <540774482@qq.com> Date: Sun, 11 Oct 2020 13:26:22 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E7=AC=AC=E4=BA=8C=E5=91=A8/P33051-Jindai?= =?UTF-8?q?hui/=E7=AC=AC=E4=BA=8C=E5=91=A8=E4=BD=9C=E4=B8=9A.=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E5=91=A8=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...2\214\345\221\250\344\275\234\344\270\232" | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 "\347\254\254\344\272\214\345\221\250/P33051-Jindaihui/\347\254\254\344\272\214\345\221\250\344\275\234\344\270\232" diff --git "a/\347\254\254\344\272\214\345\221\250/P33051-Jindaihui/\347\254\254\344\272\214\345\221\250\344\275\234\344\270\232" "b/\347\254\254\344\272\214\345\221\250/P33051-Jindaihui/\347\254\254\344\272\214\345\221\250\344\275\234\344\270\232" new file mode 100644 index 0000000..35fbccc --- /dev/null +++ "b/\347\254\254\344\272\214\345\221\250/P33051-Jindaihui/\347\254\254\344\272\214\345\221\250\344\275\234\344\270\232" @@ -0,0 +1,38 @@ +1,斐波那契数列:从第三项开始 第三项等于前两项之和的数列,前两项是1,2 +素数:就是质数 +质数:一个大于1的自然数,除了1和它本身外,不能被其他自然数整除。 +猴子吃桃:每天吃一半多一个,第十天就只剩下一个 ,问一开始摘了多少个 +x=1 +for i in range(9): + x=(x+1)*2 +print (x) + +2, +append()尾部追加 +insert()插入 +extend()尾部增加,就地修改 +copy()浅拷贝 +import copy()深拷贝 +remove()移除 +pop()弹出 +clear()清楚 +reverse()反转 +sort()排序 + + +3, +print('Please input one number') +num1 = int(input('>>>')) +print('Please input operator,example:+ - * /') +operator = input('>>>') +print('Please input the second number') +num2 = int(input('>>>')) +if operator == "+": + print('answer = ',num1 + num2) +if operator == "-": + print('answer = ',num1 - num2) +if operator == "*": + print('answer = ',num1 * num2) +if operator == "/": + print('answer = ',num1 / num2) + -- Gitee