[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
格式描述符作用
riw[.m]
(注:中括号内为可加可不加内容)w为字符宽度,数字长度不够则在前面补空格
m也为字符宽度,在前面补0
如果m=w或者m = w+1,输出w位不足w位补0
如果m = w+2,输出w位的 *
如果m=0,且输出的数为0,则允许输出为空格
fw.dw为字符宽度,不足用空格补足,小数点也算一位
d为小数部分宽度,小于实际长度四舍五入,大于实际长度会补上一些奇怪的数
当d > w-2 时,输出w位的 *
ew.d[ev]
(注:中括号内为可加可不加内容)d为小数位数,小于实际长度四舍五入,长于实际长度补一些奇奇怪怪的数
v为指数部分长度,如果为0系统会崩,如果小于实际长度则输出w个 *
w为总长度
若w = d+v+3,则输出不含整数部分的指数
若w = d+v+4,则输出整数部分为 0 的指数
若w > d+v+4,则输出整数部分为 0 的指数,整数部分总是为0,指数前补(d+v+4)个空格
若w < d+v+3,则输出w个 *
dw.d使用方法同ew.d,差别在于输出时用来代表指数的字母由E换成D。
aw输出w位的字符串
nx输出位置向右移动n位
lw以w个字符宽来输出T或F的真假值。write(*,‘(L4)‘) .true. ;程序会输出3个空格和一个T
/换行输出。write(*,‘(I3//3)‘) 10,10 程序会得出4行,中间两行空格是从除号"/"得到的。
tc从本行第c个字节输出,若该位置有内容,覆盖之。
trc输出位置向右移动c个位置
tlc输出位置向左移动c个位置
ss,sp加了SP后,输出数字时如数值为正则加上"+",SS则是用来取消SP的功能。
注:数字宽度增加了一个位置。