#输入
p=float(input(“单价”))
n=int(input(“数量”))
s=p*n
print(“...”,s)
阅读全部
|
小米辣
贴于 2022年5月11日 13:48
hide
bbsi
#输入
p=float(input("单价:"))
n=int(input("数量:"))
s=p*n
print("...:," s)
阅读全部
|
小米辣
贴于 2022年5月10日 21:34
hide
bbsi
def recursion(n):
result = n
for i in range(1,n):
result *= i
return result
number = int(input('请输入一个整数'))
result = recursion(number)
print("%d的阶乘是:%d"%(number,result))
阅读全部
|
小呆阳
贴于 2022年5月9日 17:35
hide
bbsi
def recursion(n):
result = n
for i in range(1,n):
result *= i
return result
number = int(input('请输入一个整数'))
result = recursion(number)
print("%d的阶乘是:%d"%(number,result))
阅读全部
|
小呆阳
贴于 2022年5月9日 17:35
hide
bbsi
//链栈:逻辑结构:线性表中的栈;存储结构:链式存储
#include<stdio.h>
#include<stdlib.h>
#define ElemType int
typedef struct Linknode {
ElemType data; //数据域
struct Linknode* next; //指针域
}*LinkStack;
LinkStack InitStack() {
//初始化链栈
LinkStack S = NULL; //错误点之一,先赋值NULL,再使用malloc
S = (LinkStack)malloc(sizeof(LinkStack));
......................
阅读全部
|
小小小腿
贴于 2022年5月9日 00:56
hide
bbsi
#include <bits/stdc++.h>
using namespace std;
void YueSeFu(int n, int m);
int main(int argc, char** argv)
{
YueSeFu(10, 3);
return 0;
}
void YueSeFu(int n, int m)
{
bool a[n+1];
int j=1,r=0;
......................
阅读全部
|
JZL1
贴于 2022年5月7日 16:09
hide
bbsi
import numpy as np
from pyecharts.charts import Bar
from pyecharts import options as opts
from pyecharts.globals import ThemeType
# 生成数据
years = [2011, 2012, 2013, 2014, 2015]
y1 = [1, 3, 5, 7, 9]
y2 = [2, 4, 6, 4, 2]
y3 = [9, 7, 5, 3, 1]
y4 = list(np.random.randint(1, 10, 10))
......................
阅读全部
|
zzl525
贴于 2022年5月7日 16:01
hide
bbsi
import numpy as np
from pyecharts.charts import Bar
from pyecharts import options as opts
from pyecharts.globals import ThemeType
# 生成数据
years = [2011, 2012, 2013, 2014, 2015]
y1 = [1, 3, 5, 7, 9]
y2 = [2, 4, 6, 4, 2]
y3 = [9, 7, 5, 3, 1]
y4 = list(np.random.randint(1, 10, 10))
......................
阅读全部
|
zzl525
贴于 2022年5月7日 16:01
hide
bbsi
/**
* 【程序35】
* 题目:假设银行一年整存零取的月息为0.63%。现在某人手中有一笔钱,
* 他打算在今后的5年中的每年年底取出1000元,
* 到底5年时刚好取完,请算出他存钱时应存入多少?
*/
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define RATE 1.0063
int main()
{
......................
阅读全部
|
代码之光
贴于 2022年5月6日 12:36
hide
bbsi
class Base
{
Base()
{
System.out.println("Base");
}
......................
阅读全部
|
liubj1
贴于 2022年5月5日 15:21
hide
bbsi