- 博客(4)
- 收藏
- 关注
原创 python中format()方法的格式控制
通过槽内部的配置对格式进行控制例:print("{:=^20}".format(a)): 为引导符号= 在此处进行填充,可填充单个字符如= > < * 等等^ 对齐符号 ^为居中对齐,<为左对齐,>为右对齐20 为槽所设定的输出宽度例:2print("{0:,.2f}".format(12345.678))...
2019-08-12 20:18:01 7610
原创 删除链表的偶数节点
#include using namespace std;typedef struct node{int data;struct node *next;}LNode,*LinkList;void InitList(LinkList &L){L=new LNode;L->next=NULL;}void GetList(LinkList &L){int...
2019-09-26 12:32:41 589
原创 python中turtle库基本函数
1.turtle库需要import 作为保留字来进行调用1.import turtleturtlr.circle(半径,角度)2.from turtle import*circle(100,80)3.import turtle as tt.circle(100,80)2.turtle函数:turtle.penup() turtle.pu()将????抬起来turtle.pendow......
2019-09-18 20:21:55 12572 1
转载 输出N^N的个位数字
#DescriptionGiven a positive integer N, you should output the most right digit of N^NInputThe input contains several test cases. The first line of the input is a single integer T which is the numbe...
2019-05-12 11:20:34 351
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人