java中怎么判断变量是不是int类型的首先java中没有typeof关键字,可以通过反射机制来完成,给个思路:import java.lang.reflect.Fieldpublic class test {byte i = 1intj = iint w*2023-04-30Python230
java中怎么判断变量是不是int类?java里没有typerof ,要用instanceof基础类型不行,要用对象Integer i = 0if (i instanceof Integer) {System.out.println("haha")2023-04-29Python220
请问python怎么调用execl的录制好的宏?谢谢需要安装pywin32这个包from win32com.client import DispatchxlsApp= Dispatch('Excel.Application')xlsApp.Workbooks.Open(&2023-04-13Python140
java中怎么计算两个日期相差多少个月给个思路:int result = 0 if(year==year1){ result=month1-month两个日期相差几个月,即月份差}else{ result=12*(year1-year)+month1-month两个日期2023-04-09Python180
如何C语言编程画一个彩色的周易八卦图我先给个例子,#include #include #include #include "conio.h" #include"math.h" void main() { int gdriver=DETE2023-02-25Python150
java中电话号码的正则表达式,只要是11位就可以了,不限定是什么开头首先说明下正则表达式是通用的,不只是JAVA中下面给个简单的匹配^1[0-9]{10}$或者^1d{10}$上面就最简单的符合数字而已,如果LZ不考虑第一位是否是1直接^d{11}$if(s1.matches(regex)){ Sy2023-02-24Python180