摘要:
在C语言中,指针变量的值就是一个内存地址,&运算符的作用也是取变量的内存地址,请看下面的代码: #include <stdio.h> #include <stdlib.h> int a = 1, b = 255; int main(){ int *pa = &a; printf("pa = %#X, 阅读全文
posted @ 2022-10-05 18:41
myrj
阅读(182)
评论(0)
推荐(0)
摘要:
import requests r=requests.head(urla,stream=True) #aa=requests.post(url,headers=head1,json=json2) urlx=r.headers['Location'] 阅读全文
posted @ 2022-10-05 15:14
myrj
阅读(80)
评论(0)
推荐(0)
摘要:
有4个圆塔,圆心分别为(2,2)、(-2,2)、(-2,-2)、(2,-2),圆半径为1。这4个塔的高度为10m,塔以外无建筑物。今输入任一点的坐标,求该点的建筑高度(塔外的高度为0) #include <stdio.h> //四个圆心坐标:(2,2) (-2,-2) (2,-2) (-2,2) / 阅读全文
posted @ 2022-10-05 09:17
myrj
阅读(300)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <math.h> main() { int a,b,c,d; for(a=-9;a<=9;a++) { for(b=1;b<=19-abs(a);b++) printf(" "); for(c=0;c<2*abs(a)+1;c++) print 阅读全文
posted @ 2022-10-05 09:11
myrj
阅读(992)
评论(0)
推荐(0)

浙公网安备 33010602011771号