height = input("你的身高是(m):")
print(height)
weight = input("你的体重是(kg):")
print(weight)
BMI=float(weight)/float(height)**2
print(f"你的BMI指数为:{BMI}")
if BMI<18.5:
print("你太瘦啦,美食可以放肆吃起来,哈哈哈哈~~~~")
elif BMI<24:
print("哇哦!你的状态非常健康哦,继续保持健康的生活习惯吧!")
......................
阅读全部
|
Lisa_lin
贴于 2022年2月21日 09:24
hide
bbsi
#include <stdio.h>
void setence();
int main()
{
setence();
setence();
setence();
printf("Which no body can deny\n");
return 0;
}
void setence()
......................
阅读全部
|
viceboy
贴于 2022年2月20日 15:57
hide
bbsi
#include <stdio.h>
int main()
{
int n,n2,n3;
/*There are some faults in this programme*/
n=5;
n2=n*n;
n3=n*n*n;
printf("n = %d\nn squared = %d\nn cubed = %d\n",n,n2,n3);
return 0;
......................
阅读全部
|
viceboy
贴于 2022年2月19日 17:16
hide
bbsi
#include <stdio.h>
int main()
{
int n,n2,n3;
/*There is some faults in this programme*/
n=5;
n2=n*n;
n3=n*n*n;
printf("n = %d\nn squared = %d\nn cubed = %d\n",n,n2,n3);
return 0;
......................
阅读全部
|
viceboy
贴于 2022年2月19日 17:15
hide
bbsi
#include <stdio.h>
void answer(void)
{
printf("Dad,I am watching tv,what's up?\n");
};
int main()
{
printf("Rick,what are you doing?\n");
answer();
......................
阅读全部
|
viceboy
贴于 2022年2月19日 17:01
hide
bbsi
#include <stdio.h>
int main(void)
{
int feet,fathoms;
fathoms=2;
feet=6*fathoms;
printf("There are %d feet in %d fathoms!\n",feet,fathoms);
printf("Yes, I said %d feet!\n",6*fathoms);
return 0;
}
阅读全部
|
viceboy
贴于 2022年2月19日 16:30
hide
bbsi
import RPi.CPIO as GPIO
from time import sleep
in1 = 24
in2 = 23
en = 25 # 定义输出引脚
temp1 = 1
GPIO.setmode(GPIO.BCM) # 定义树莓派gpio引脚以BCM方式编号
GPIO.setup(in1, GPIO.OUT)
GPIO.setup(in2, GPIO.OUT)
......................
阅读全部
|
斯玥
贴于 2022年2月16日 18:25
hide
bbsi
#include <stdio.h>
int main() {
printf("我在编程中国学C语言\n\n");
// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}
printf("\n\n绘制一个心形图案:");
......................
阅读全部
|
bvcxz
贴于 2022年1月29日 10:40
hide
bbsi
# -*- coding: UTF-8 -*-
import pymysql
def readSQL():
#查询 SQL 语句
sql = "SELECT id,'apiname',apiurl from apitest_apistep where apitest_apistep.Apitest_id = 2"
#打开 MySQL 数据库链接
coon = pymysql.connect(user='root', passwd = 'test123456',db = 'autotest', port = 3306, host='127.0.0.1',charset='utf8')
#获取数据库操作游标
cursor = coon.cursor()
#执行 MySQL 查询语句
aa = cursor.execute(sql)
......................
阅读全部
|
shlgj
贴于 2022年1月28日 14:50
hide
bbsi