# # +SCRIPT BY Alexander Ezharjan+ # # +date : 2020/12/12 + # # +contact : ezhar.cnblogs.com + # # import sys import os import time print( """ XX MMMM ...
分类:
编程语言 时间:
2021-02-27 13:11:28
阅读次数:
0
1 类型转换 ? 由于Java是强类型语言,所以要进行有些运算的时候,需要用到类型转换。运算中,不同类型的数据先转换为同一类型,然后进行运算。 低 高 byte,short,char > int > long > float > double 1.1 强制转换 由高到低 (类型)变量名 // 强制转 ...
分类:
编程语言 时间:
2021-02-27 13:11:10
阅读次数:
0
aa="test1" class A: def test1(self): print("test1") def test2(self): print("test2") def test3(self): print("test3") a=A() func=getattr(a,aa) func() #t ...
分类:
其他好文 时间:
2021-02-27 12:58:13
阅读次数:
0
# -*- coding: UTF-8 -*- import os import imghdr def get_filelist(dir): for home, dirs, files in os.walk(dir): for filename in files: try: fullname = o ...
分类:
编程语言 时间:
2021-02-26 13:35:43
阅读次数:
0
hello,world! 创建文档 创建文档将后缀名改为.java 编写代码 public class helloworld{ public static void main(String[] args){ System.out.print("hello,world!"); }} 进入DOS命令窗口 ...
分类:
其他好文 时间:
2021-02-26 13:21:47
阅读次数:
0
一:作用 二:定义 三:类型转换 四:内置方法 一:列表类型的作用 如果需存多个值并按顺序取,那用list再合适不过了 二:列表类型的定义 l = [1,2,3,'a'] ##相当于l = list(1,2,3,'a') print(l)print(type(l)) 以上代码执行结果为: [1, 2 ...
分类:
编程语言 时间:
2021-02-26 13:20:23
阅读次数:
0
在上一篇文章中,我们讲到了 goroutine 在操作系统的并发编程体系,以及在 Go 语言并发编程模型中的地位和作用等一系列内容,今天我们继续来聊一聊这个话题。 知识扩展 问题 1:怎样才能让主 goroutine 等待其他 goroutine? 我刚才说过,一旦主 goroutine 中的代码执 ...
分类:
编程语言 时间:
2021-02-26 13:15:22
阅读次数:
0
from selenium import webdriver import time import json wb = webdriver.Chrome() wb.get('https://www.baidu.com') wb.maximize_window() time.sleep(3) # 登录 ...
分类:
编程语言 时间:
2021-02-26 12:56:21
阅读次数:
0
pkg embed in go embed包 提供了访问正在运行的go程序的功能。 嵌入一个文件到string import _ "embed" //go:embed hello.txt var s string print(s) 嵌入一个文件到一个字节切片 import _ "embed" //g ...
分类:
其他好文 时间:
2021-02-25 11:43:34
阅读次数:
0
1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 long long int jiecheng(int a); 6 long long int sum=jiecheng(20); 7 printf("%lld",sum); 8 ret ...
分类:
其他好文 时间:
2021-02-24 13:27:15
阅读次数:
0