少女祈祷中...

image-20240831153324875

image-20240831153350788

个数= 2^k-1^

image-20240831153658974

image-20240831154749675

image-20240831155057821

image-20240831155201507

字典表示高维数据

image-20240831155326528

image-20240831160514267

get找不到就返回“黄色”

image-20240831160946562

pow10并未被调用,没有输出

image-20240831161226230

累加

image-20240831161927344

image-20240831162536382

x = ((3**2 + 5 * 6**7)/8)**0.5
print("{:.3f}".format(x))
____________________________________________________________________________________________________________
x = round(((3**2 + 5 * 6**7)/8)**0.5,3)
print(x)

image-20240831163620570

import jieba
s=("中国特色社会主义进入新时代,我国社会主要矛盾已经转化为人民日益增长的美\好生活需要和不平衡不充分的发展之间的矛盾。")
n = len(s)
m = len(jieba.lcut(s))
print("中文字符数为{},中文词语数为{}。".format(n,m))

image-20240831164446073

print("二进制{0:b},十进制{0},八进制{0:o},十六进制{0:x}".format(0x4DC0 + 50))

image-20240901163035019

import turtle
d = 0
for i in range(4) :
    turtle.fd(200)
    d = d+90
    turtle.seth(d)

image-20240901165754687

ls = ["综合","理工","综合","综合","综合","综合","综合","综合","综合","综合","师范","理工","综合","理工","综合","综合","综合","综合","综合","理工","理工","理工","理工","师范","综合","农林","理工","综合","理工","理工","理工","综合","理工","综合","综合","理工","农林","民族","军事"]
d = {}
for word in ls:
    d[word] = d.get(word,0) + 1
for k,y in d.items() :
    print("{}:{}".format(k,y))

image-20240902201223617