摘要: 字符串反码 https://img2020.cnblogs.com/blog/2526305/202109/2526305-20210914230103544-245030562.png 阅读全文
posted @ 2021-09-14 23:01 廖宇皓 阅读(59) 评论(0) 推荐(0)
摘要: happy math https://img2020.cnblogs.com/blog/2526305/202109/2526305-20210914212239929-1407905602.png 阅读全文
posted @ 2021-09-14 21:23 廖宇皓 阅读(93) 评论(0) 推荐(0)
摘要: N=input("") j=0 for i in N: if i=="(": j+=1 elif i==")": j-=1 if j<0: print("配对不成功") break if j>0: print("配对不成功") elif j==0: print("配对成功") 阅读全文
posted @ 2021-09-14 20:52 廖宇皓 阅读(32) 评论(0) 推荐(0)
摘要: daydayup N=float(input("输入N的数:")) goodLast=float(1.0) badLast=float(1.0) day=365 if(N>=1 and N<=100): while day>=1: goodLast+=goodLast*N/100 badLast-=badLast*N 阅读全文
posted @ 2021-09-13 23:22 廖宇皓 阅读(270) 评论(0) 推荐(0)
摘要: 同符号数学运算 the math N=int(input("请输入一个整数")) i=abs(N) print(str(i)+" "+str(i+10)+" "+str(i-10)+" "+str(i*10)) 阅读全文
posted @ 2021-09-13 20:34 廖宇皓 阅读(54) 评论(0) 推荐(0)
摘要: 照猫画虎求阶乘 number=int(input("请输入")) result=1 while number>=1: result *=number number-=1 print(str(result)) 阅读全文
posted @ 2021-09-13 19:59 廖宇皓 阅读(41) 评论(0) 推荐(0)
摘要: i=float(input("输入一个数:")) print("{:.3f}".format(i)) 阅读全文
posted @ 2021-09-12 23:08 廖宇皓 阅读(102) 评论(0) 推荐(0)
摘要: x=input("") x=x[::-1] print(x) 阅读全文
posted @ 2021-09-12 19:28 廖宇皓 阅读(152) 评论(0) 推荐(0)
摘要: length=float(input("请输入矩阵的长:")) wide=float(input("请输入矩阵的宽:")) area=length*wide a=round(area,2) print(a) 阅读全文
posted @ 2021-09-12 19:16 廖宇皓 阅读(71) 评论(0) 推荐(0)
摘要: 石头怪(高坚果) print(""" * * * * * * * * * * @ @ * * * * @ * * * * * * * * * * * * "'") 2020310143027 阅读全文
posted @ 2021-09-04 20:03 廖宇皓 阅读(69) 评论(0) 推荐(0)