diff --git a/day2/条件循环.py b/day2/条件循环.py index e216c9e..4ece615 100644 --- a/day2/条件循环.py +++ b/day2/条件循环.py @@ -33,5 +33,4 @@ shot = "" for i in range(0, length): num = length - i - 1 shot += str[num] -print(shot) - +print(shot) \ No newline at end of file diff --git a/day3/条件控制.py b/day3/条件控制.py new file mode 100644 index 0000000..c6d8ce3 --- /dev/null +++ b/day3/条件控制.py @@ -0,0 +1,6 @@ +a = input("").split() +for i in a: + if i.isdigit(): + print(i*2) + else: + print(i) \ No newline at end of file