100 Python 题
2021-01-22 16:14
标签:iter int class lis list nbsp imp ons import 1. 100 Python 题 标签:iter int class lis list nbsp imp ons import 原文地址:https://www.cnblogs.com/hrunjie/p/12888447.htmllist_num = [1, 2, 3, 4]
count = 0
for x in list_num:
for y in list_num:
for z in list_num:
if (x!=y and x!=z and y!=z):
count += 1
print(str(x)+str(y)+str(z))
print(‘total is %d‘%(count))
法二