码迷,mamicode.com
首页 >  
搜索关键字:__main__    ( 65088个结果
实验三——张翼飞
实验任务一: // 生成N个0~99之间的随机整数,并打印输出 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); // 以当前系统时间 ...
分类:其他好文   时间:2021-04-14 12:11:43    阅读次数:0
流程控制学习--打印三角形及Debug
package com.kuang.struct; public class TestDemo { public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j = 5; j ...
分类:其他好文   时间:2021-04-14 12:09:53    阅读次数:0
Java-方法
// 1.Java方法 public static void main (String args[]){ int res = sum(1, 2); // int res = HelloWorld.sum(1, 2); System.out.println(res); } // 求和 public s ...
分类:编程语言   时间:2021-04-14 12:05:41    阅读次数:0
因子分解
输入一个数,分解成其质因子 1 #include<stdio.h> 2 3 int main() 4 { 5 int val,temp; 6 scanf("%d", &val); 7 printf("%d=1*", val); 8 temp = val; 9 for (int i = 2; i < ...
分类:其他好文   时间:2021-04-14 11:57:55    阅读次数:0
vue3.0 (无 typescript ) 项目
1、安装element-plus: main.js: //安装 element-plus npm install element-plus --save //引入 element-plus import ElementPlus from 'element-plus'; import 'element ...
分类:其他好文   时间:2021-04-14 11:57:37    阅读次数:0
Python 打印目录和目录下所有文件
#!/usr/bin/env python3#!-*- coding:UTF-8 -*- import osclass GetPath():# 获取所有目录 @staticmethod def get_dir(path): print("打印所有目录:") for root, dirs, files ...
分类:编程语言   时间:2021-04-14 11:51:07    阅读次数:0
【YBTOJ】立体推箱子
题目大意: 有一个 \(N\times M\) 的矩阵,每个位置可能是硬地(用 . 表示),易碎地面(用 E 表示),禁地(用 # 表示),起点(用 X 表示),终点(用 O 表示)。 你的任务是操作一个 \(1\times1\times2\) 的长方体。 这个长方体在地面上有两种放置方式,“立” ...
分类:其他好文   时间:2021-04-14 11:41:15    阅读次数:0
算数运算符 自增 自减
package com.zhang.www.base.operater; public class Demo06 { public static void main(String[] args) { //++ -- 自增 自减 一元运算符:一个数字就可以运算 int a=3; int b=a++; ...
分类:其他好文   时间:2021-04-13 12:33:54    阅读次数:0
算术运算符 模运算
package com.zhang.www.base.operater; public class Demo05 { public static void main(String[] args) { //关系运算符返回的结果: 正确,错误 布尔值表示 //if int a=10; int b=20; ...
分类:其他好文   时间:2021-04-13 12:33:43    阅读次数:0
实验三
// 生成N个0~99之间的随机整数,并打印输出 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); // 以当前系统时间作为随机种子 ...
分类:其他好文   时间:2021-04-13 12:30:05    阅读次数:0
65088条   上一页 1 ... 54 55 56 57 58 ... 6509 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!