首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <stdio.h>
#include <math.h>

int main() {
    int A = 10;
    int B = 64;
    int C = 128;
    int D = 192;
    int E = 255;
    int F, I, J, K;
    float E_prime,L;

......................
阅读全部 | Alexislin 贴于 2023年10月6日 16:15     hide bbsi
#include <stdio.h>
#include <math.h>

int main() {
    int A = 10;
    int B = 64;
    int C = 128;
    int D = 192;
    int E = 255;
    int F, I, J, K;
    float E_prime,L;

......................
阅读全部 | Alexislin 贴于 2023年10月6日 16:07     hide bbsi
# 编写一个名为num_of_days的子程序,
# 通过它的形参列表接收一个月份(1~12),然后返回当月的天数。
# 无需考虑闰年,只需假定2月份有28天。

# 单一功能原则
def num_of_days(month):
    days = 0 # 初始值。无效
    
    # 根据月份,赋值具体的天数
    if month in (1,3,5,7,8,10,12):
        days = 31
    elif month in (4,6,9,11):
......................
阅读全部 | sunsongwei 贴于 2023年9月13日 22:04     hide bbsi
print("我在中国学Python\n")

# 练习一下循环的使用
for i in range(1, 21):
print(f"我爱编程中国 {i} 次")
阅读全部 | 蝈蝈2023 贴于 2023年9月12日 16:17     hide bbsi
print("我在中国学Python\n")

# 练习一下循环的使用
for i in range(1, 21):
print(f"我爱编程中国 {i} 次")
阅读全部 | 蝈蝈2023 贴于 2023年9月12日 16:17     hide bbsi
#include <stdio.h>
#include<stdlib.h>
#include<time.h>
#define DL 3
#define STR(n)#n
#define DIGIT_LEN_STR(n) "%" STR(n) "d"
typedef struct Node{
    int data;
    struct Node *next;
}Node;

Node *getNewNode(int val)
......................
阅读全部 | geruichen 贴于 2023年9月9日 16:02     hide bbsi
import matplotlib.pyplot as pyplot
import numpy as np 
import time 
import datetime
import pandas as pd 


data1=pd.read_excel("附件1.xlsx")
data2=pd.read_cvs("附件2.cvs")
data3=pd.read_excel("附件3.xlsx")
data4=pd.read_excel("附件4.excel")
all_list=np.array([class_list]*1094)
......................
阅读全部 | zhangyuyuyyy 贴于 2023年9月9日 11:48     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include<time.h>

typedef struct vector{
 int size,count;
 int *data;
} vector;/*结构定义*/
vector *getNewVector(int n){//顺序表的初始化操作//
    vector *p=(vector*)malloc(sizeof(vector));//开辟顺序表空间//
    p->size=n;
    p->count=0;
......................
阅读全部 | geruichen 贴于 2023年9月7日 20:55     hide bbsi
#include <stdio.h>
#include <stdlib.h>


typedef struct vector{
 int size,count;
 int *data;
} vector;
vector *getNewVector(int n){
    vector *p=(vector*)malloc(sizeof(vector));
    p->size=n;
    p->count=0;
......................
阅读全部 | geruichen 贴于 2023年9月4日 15:08     hide bbsi
#include<bits/stdc++.h>
using namespace std;
int a[1000],b[1000],c[1000];
int main(){
string a1,a2;
cin>>a1>>a2;
int lena=a1.size(),lenb=a2.size();
for(int i=0;i<lena;i++){
a[i]=a1[lena-1-i]-'0';
}
for(int i=0;i<lenb;i++){
b[i]=a2[lenb-1-i]-'0';
......................
阅读全部 | dhm 贴于 2023年8月15日 16:44     hide bbsi
上一页 3 4 5 6 7 8 9 10 11 12 下一页