【简答题】Something in chocolate could be used to stop coughs and lead to more effective medicines, say UK researchers. Their study found that theobromine, found in cocoa, was nearly a third more effective in s...
n=int(input("请输入一个奇数:")) for i in range(1,n+1,2): b=n//2-(i//2+1)+1 print(" "*b,end='') print("*"*i,end='\n') for i in range(n,0,-2): b=n//2-(i//2+1)+1 print(" "*b,end='') print("*"*i,end='\n')
B.
n=int(input("请输入一个奇数:")) for i in range(1,n+1): b=n//2-(i//2+1)+1 print(" "*b,end='') print("*"*i,end='\n') for i in range(n,0): b=n//2-(i//2+1)+1 print(" "*b,end='') print("*"*i,end='\n')
C.
n=int(input("请输入一个奇数:")) for i in range(1,n+1,2): b=n//2-(i//2+1) print(" "*b,end='') print("*"*i,end='\n') for i in range(n,0,-2): b=n//2-(i//2+1) print(" "*b,end='') print("*"*i,end='\n')
D.
n=int(input("请输入一个奇数:")) for i in range(1,n+1,2): b=n-(i//2+1)+1 print(" "*b,end='') print("*"*i,end='\n') for i in range(n,0,-2): b=n-(i//2+1)+1 print(" "*b,end='') print("*"*i,end='\n')
【简答题】Something in chocolate could be used to stop coughs and lead to more effective medicines, say UK researchers. Their study found that theobromine(可可碱), found in cocoa, was nearly a third more effective...