摘要: # include<stdio.h> //获取一个数num、 //用do while 求出这个数的位数即为digit, //创建一个长度为digit的数组, //用for循环嵌套while循环,外层for循环用于遍历数的每一位,个位,十位,百位···· //内层while循环用于实现对百位数进行两次 阅读全文
posted @ 2022-10-21 16:54 Selina风乎舞雩 阅读(37) 评论(0) 推荐(0)
摘要: public class CircleSqQueue implements Iqueue{ private Object[] queueElem; private int front; private int rear; private int maxSize; public CircleSqQue 阅读全文
posted @ 2022-10-19 16:44 Selina风乎舞雩 阅读(16) 评论(0) 推荐(0)
摘要: 顺序队列: 在顺序队列中有queueElem,front,rear,maxSize queueElem代表队列的存储空间 front代表队首的位置 rear代表队尾的位置的下一个位置。 maxSize代表最多放存储个数。 public class SqQuene implements Iqueue{ 阅读全文
posted @ 2022-10-19 16:03 Selina风乎舞雩 阅读(23) 评论(0) 推荐(0)
摘要: 导入资源包 from sklearn.linear_model import LogisticRegression import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metric 阅读全文
posted @ 2022-10-18 17:48 Selina风乎舞雩 阅读(81) 评论(0) 推荐(0)
摘要: def f(): global h global s global m log=int(input(":")) if log >=3600: h = log // 3600 log = log % 3600 if log>60: m = log // 60 log=log%60 s=log if 0 阅读全文
posted @ 2022-10-17 13:41 Selina风乎舞雩 阅读(47) 评论(0) 推荐(0)
摘要: def f(): for i in range(1,10): for j in range(1,10): if i>=j: print("{a}*{b}={c}".format(a=i,b=j,c=i*j),end=" ") print("\n") if __name__ == '__main__' 阅读全文
posted @ 2022-10-16 13:24 Selina风乎舞雩 阅读(18) 评论(0) 推荐(0)
摘要: def f(): n=int(input(":")) for i in range(0,n+1): if i ==0: print(" "*(n)+"$") elif i==n: print("$"*(2*n-1)) else: print(" "*(n-i)+"$"+((2*i)-1)*" " + 阅读全文
posted @ 2022-10-16 13:07 Selina风乎舞雩 阅读(17) 评论(0) 推荐(0)
摘要: import turtle as t def draw(): t.left(30) t.forward(50) def draw_circle(): t.right(120) t.forward(50) t.right(120) t.forward(50) t.right(120) t.forwar 阅读全文
posted @ 2022-10-15 23:53 Selina风乎舞雩 阅读(204) 评论(0) 推荐(0)
摘要: import turtle as t def draw(): t.forward(150) def draw_circle(): t.right(120) t.forward(150) t.right(120) t.forward(150) t.right(120) t.forward(150) t 阅读全文
posted @ 2022-10-15 16:43 Selina风乎舞雩 阅读(131) 评论(0) 推荐(0)
摘要: t.left(120) t.fillcolor("#fff000") def draw_circle(): t.begin_fill() t.hideturtle() t.pensize(4) l=150 t.color("green") t.circle(-l,90) t.right(90) t. 阅读全文
posted @ 2022-10-15 10:49 Selina风乎舞雩 阅读(26) 评论(0) 推荐(0)