编程语言
1、 >>> def a(): print("begin eating!") >>> print("starting!") starting! >>> a() begin eating! >>> print("ending") ending ↓ >>> def a(): print("startin ...
分类:编程语言 时间:2021-03-07 15:07:07 收藏:0 阅读:25
#include<stdio.h> #include<stdlib.h> #include<conio.h> int main() { int i,j; int x=10; int y=5; char input; int isFired =0; // 是否开火 int ny = 5; int is ...
分类:编程语言 时间:2021-03-07 15:06:40 收藏:0 阅读:41
根据网上文章自己修改: 例子:茶海棠个人主页:https://www.iesdouyin.com/share/user/3562042897739582?did=53298022046&iid=1566126643353143&sec_uid=MS4wLjABAAAA0NL6UPqIabTDseE8 ...
分类:编程语言 时间:2021-03-07 15:04:07 收藏:0 阅读:103
在 IntelliJ IDEA 中你是可以启用终端的。 启用终端的快捷键为 Alt + F12,或者你也可以使用你的鼠标来选择终端。当终端被选定后, IDEA 将会默认把路径设置到当前项目的根目录下面。 根据我们当前的项目,我们知道我们的 HelloWorld.py 文件在路径 tests/Hell ...
分类:编程语言 时间:2021-03-07 15:03:50 收藏:0 阅读:31
变量作用域、let、const详解 1.变量的作用域 在JavaScript中var定义的变量实际是有作用域的 假设在函数体中申明,函数外是不可以使用的~(要想实现,可以去研究一下闭包) function aaa(x) { var a=1; a=a+1; } a=a+1; //SCRIPT5009: ...
分类:编程语言 时间:2021-03-07 15:02:05 收藏:0 阅读:18
循环结构 while循环 while是最基本的循环,它的结构为: while(布尔表达式){ //循环内容 } 只要布尔表达式为true,循环就会一直执行下去 我们大多数情况是会让循环停止下来的,我们需要一个让表达式失效的方式来结束循环。 少部分情况需要循环一直执行,比如服务器的请求响应监听等。 循 ...
分类:编程语言 时间:2021-03-07 08:59:34 收藏:0 阅读:36
from PyPDF2 import PdfFileWriter, PdfFileReader # 开始页 start_page = 0 # 截止页 end_page = 5 output = PdfFileWriter() pdf_file = PdfFileReader(open("3.pdf" ...
分类:编程语言 时间:2021-03-07 08:58:56 收藏:0 阅读:179
线程的生命周期和线程的几种状态 线程的生命周期包含5个阶段,包括:新建、就绪、运行、阻塞和死亡状态。 阻塞分为三种: 1.等待阻塞,运行的线程执行了object的wait方法,该线程会释放占用的所有锁资源,jvm会把该线程放到“等待池中”,不能自动唤醒,必须依靠其他线程调用notify或者notif ...
分类:编程语言 时间:2021-03-07 08:58:24 收藏:0 阅读:41
今天来讲一讲,函数的引用;#include<stdio.h>voidMove;voidBuild;voidPaint;intmain(){Move();Build();Paint();return0;}voidMove(){printf("thefunctionismovematerial");}voidBuild(){printf("thefunctio
分类:编程语言 时间:2021-03-07 08:57:46 收藏:0 阅读:26
多线程 实现多线程的方式 方法1:Thread类 继承Thread类 start方法启动 方法2:Runnable接口 实现接口class MyRun implement Runnable.... 重写run方法 创建一个线程MyRun p = new MyRum 启动线程运行new Thread( ...
分类:编程语言 时间:2021-03-07 08:57:10 收藏:0 阅读:31
118451846184751284
上一页512833下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!