name = input('what is your name?')
if name.endswith('zd'):
print("hello panzidong")
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZuBnL4EjNwQDO2ETMtIDM1ATMyEzNxQjM2ATOxAjMtkDN4QTM48CX2ATOxAjMvwVO0gDNxgzLcd2bsJ2Lc12bj5ycn9Gbi52YugTMwIzZtl2Lc9CX6MHc0RHaiojIsJye.png)
name = input('what is your name?')
if name.endswith('zd'):
print("hello panzidong")
else:
print("hello other")
num = input('Enter a number:')
if int(num)> 0:
print('the number is positive')
elif int(num) < 0:
print('the number is negative')
else:
print('the number is zero')
轉載于:https://www.cnblogs.com/lianghong881018/p/11078246.html