提交
This commit is contained in:
@ -34,4 +34,3 @@ for i in range(0, length):
|
|||||||
num = length - i - 1
|
num = length - i - 1
|
||||||
shot += str[num]
|
shot += str[num]
|
||||||
print(shot)
|
print(shot)
|
||||||
|
|
||||||
|
|||||||
6
day3/条件控制.py
Normal file
6
day3/条件控制.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
a = input("").split()
|
||||||
|
for i in a:
|
||||||
|
if i.isdigit():
|
||||||
|
print(i*2)
|
||||||
|
else:
|
||||||
|
print(i)
|
||||||
Reference in New Issue
Block a user