代码拉取完成,页面将自动刷新
# 进度条
# import time
# lenth = 50
# print("开始执行".center(40,'.'))
# start = time.perf_counter()
# for i in range(lenth+1):
# part1 = "*" * i
# part2 = "." * (lenth-i)
# completePersent = i / lenth * 100
# execTime = time.perf_counter()
# print("\r{:^3.0f}%[{}{}]{:.2f}s".format(completePersent, part1, part2,execTime-start), end='')
# time.sleep(0.1)
# print("\n"+'结束任务'.center(40,'.'))
# scale = 50
# print("执行开始".center(scale//2,'-'))
# start = time.perf_counter()
# for i in range(scale+1):
# a = '*' * i
# b = '.' * (scale - i)
# c = (i/scale)*100
# dur = time.perf_counter() - start
# print("\r{:^3.0f}%[{}{}]{:.2f}s".format(c,a,b,dur),end='')
# time.sleep(0.1)
# print("\n"+"执行结束".center(scale//2,'-'))
# a = 1111.23412356789
# print("{:-^20}".format(pow(a,3)))
# a = 3
# for i in range(1,a+1,2):
# print("{:^{}}".format(i*'*', a))
words = "abcdefghijklmnopqrstuvwxyz"
secret = "defghijklmnopqrstuvwxyzabc"
input_word = "python is good"
# for i in input_word:
# if i in words:
# print(secret[words.index(i)], end='')
# else:
# print(i,end="")
# print()
print(ord('a'))
print(ord('d'))
print(ord('z'))
print(pow(-1,0.5))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。