while True: a = input('摄氏转华氏按1 华氏转摄氏按2') if a == '1': #输入 c = input('请输入摄氏温度:') #计算 f = float(c)*9/5+32 #输出 print('{}摄氏度转华氏度为{}' .format(c,f)) elif a= ...
分类:
其他好文 时间:
2018-04-26 01:06:38
阅读次数:
160
while True: a = int(input('摄氏转华氏请按 1\n华氏转摄氏请按 2\n退出请按 3\n')) if a==1: c = float(input('请输入摄氏温度:')) f =c*9/5+32 print('摄氏{:.2f}的华氏为{:.2f}\n'.format(c,f ...
分类:
其他好文 时间:
2018-04-26 01:04:32
阅读次数:
134
flip函数用于图像翻转,比较方便。在opencv中有几种形式: C++: void flip(InputArray src, OutputArray dst, int flipCode) ...
分类:
其他好文 时间:
2018-04-26 00:58:59
阅读次数:
351
a=input('请输入第一个数:') b=input('请输入第二个数:') sum2=int(a)+int(b) print('两个数的和是:'.format(sum2)) a=input('请输入一个摄氏度:') sum2=int(a)*9/5+32 print('转换的华氏温度是:{}'.f... ...
分类:
其他好文 时间:
2018-04-25 22:15:01
阅读次数:
333
什么是Css Selector? Css Selector定位实际就是HTML的Css选择器的标签定位 工具 Css Selector可以下载火狐浏览器插件,FireFinder 或 FireBug和FirePath组合使用。 使用方法: 1. Css Selector支持ID、Class的定位 与 ...
分类:
Web程序 时间:
2018-04-25 22:12:59
阅读次数:
367
a=input('请输入华氏温度') sum2=int(a)*5/9-32 print('转换的摄氏温度是;{}'.format(sum2)) a=input('请输入摄氏温度') sum2=int(a)*5/9+32 print('转换的华氏温度是;{}'.format(sum2)) ...
分类:
其他好文 时间:
2018-04-25 22:12:52
阅读次数:
157
a=input('1.摄氏转华氏 2.华氏转摄氏') if a =='1': f=float(input('请输入华氏温度')) c=5/9*(f-32) print('{}华氏度转为摄氏度是{}'.format(f,c)) else: c=input('请输入摄氏温度') f=float(c)*9... ...
分类:
其他好文 时间:
2018-04-25 22:11:39
阅读次数:
180
Waca loves maths,.. a lot. He always think that 1 is an unique number. After playing in hours, Waca suddenly realize that every integer can be represe ...
分类:
其他好文 时间:
2018-04-24 21:51:07
阅读次数:
189
Description 已知一个长度为 n 的整数数列 a[1],a[2],…,a[n] ,给定查询参数 l、r ,问在 [l,r] 区间内,有多少连续子 序列满足异或和等于 k 。 也就是说,对于所有的 x,y (l≤x≤y≤r),能够满足a[x]^a[x+1]^…^a[y]=k的x,y有多少组。 ...
分类:
其他好文 时间:
2018-04-24 17:34:19
阅读次数:
107
while True: a = input('1:摄氏转华氏\n2: 华氏转摄氏\n3: 退出\n') if a == '1': celsius = float(input('输入摄氏温度:')) fahrenheit = (celsius*9/5)+32 print('{:.2f}摄氏温度转为华氏 ...
分类:
其他好文 时间:
2018-04-23 18:43:16
阅读次数:
130