摘要:
money_all=56.75+72.91+88.50+26.37+68.51money_all_str=str(money_all)print("商品总金额为:"+money_all_str)money_real=int(money_all)money_real_str=str(money_rea 阅读全文
posted @ 2021-09-13 21:47
tan45
阅读(28)
评论(0)
推荐(0)
摘要:
def happy(n): try: if n==1: print("True") else: new=str(n) sum=0 for c in new: sum+=int(c)**2 return happy(sum) except Exception as e: print ("False") 阅读全文
posted @ 2021-09-13 21:05
tan45
阅读(105)
评论(0)
推荐(0)
摘要:
n=eval(input("请输入一个整数:"))N=abs(n)a=N+10b=N-10c=N*10if n>0: a=abs(a) b=abs(b) c=abs(c)else: a=-abs(a) b=-abs(b) c=-abs(c)print(N,a,b,c,end="") 阅读全文
posted @ 2021-09-13 20:54
tan45
阅读(96)
评论(0)
推荐(0)
摘要:
a=input("请输入字符串:")result=a[::-1]print("该字符串的倒序为:",result) 阅读全文
posted @ 2021-09-13 20:38
tan45
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号