diff --git a/Helloworld.py b/Helloworld.py new file mode 100644 index 0000000..95e84f5 --- /dev/null +++ b/Helloworld.py @@ -0,0 +1,2 @@ +#!/usr/bin/python +print('Hello world!') diff --git a/try.java b/try.java new file mode 100644 index 0000000..e5b14b5 --- /dev/null +++ b/try.java @@ -0,0 +1,16 @@ +/* +import java.util.Scanner; +public class LeapYear { + public static void main(String[] args) { + Scanner scan = new Scanner(System.in); + System.out.println("请输入一个年份:"); + long year = scan.nextLong(); + if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) { + System.out.print(year + "年是闰年!"); + } + else{ + System.out.print(year + "年不是闰年!"); + } + } +} +*/