摘要:
money_all=56.3+65.3+32.1+32.5money_all_str=str(money_all)print("商品总金额为:" +money_all_str)money_real = int(money_all)money_real_str = str(money_real)pri 阅读全文
posted @ 2021-09-14 22:33
boyc
阅读(10)
评论(0)
推荐(0)
摘要:
a=str(input("3045\n")) while(a!=1 and a!=4): x = list(str(a)) a=0 for i in x: a=a+int(i)**2 if(a==1): print("这个是快乐的数字") else: print("这个不是快乐的数字") 阅读全文
posted @ 2021-09-14 19:24
boyc
阅读(32)
评论(0)
推荐(0)
摘要:
a = input("3045\n") for i in range(len(a)): if ord('a')<=ord(a[i])<=ord('z'): b = (ord(a[i]) + 3 - ord('a')) % 26 + ord('a') print(chr(b),end="") elif 阅读全文
posted @ 2021-09-14 19:11
boyc
阅读(13)
评论(0)
推荐(0)
摘要:
a = str(input("3045\n")) for i in range(len(a)): if ord('a')<=ord(a[i])<=ord('z'): b = ord('z')-(ord(a[i])-ord('a')) print(chr(b),end="") elif ord('A' 阅读全文
posted @ 2021-09-14 19:05
boyc
阅读(86)
评论(0)
推荐(0)

浙公网安备 33010602011771号