_2_
发表于 2020-5-11 21:08:16
liuzhengyuan 发表于 2020-5-11 19:45
我这里报错?
手撸的,不知道对不对……
我这里不报错
lq775156
发表于 2020-5-11 21:08:23
像你学习,厉害的老铁
zq015
发表于 2020-5-11 21:20:28
for i in range(10,100):
ifi//10 !=3 and i%10 != 3 and i%3 != 0:
print(i,end = ' ')
lijiachen
发表于 2020-5-12 17:06:26
{:10_256:}
占楼......
Otaku007
发表于 2020-5-12 18:23:59
占楼{:10_256:}{:10_256:}
1469396970
发表于 2020-5-12 21:30:29
本帖最后由 1469396970 于 2020-5-12 21:33 编辑
for num in range(10,100):
if num%3!=0 and '3'not in str(num):
print(num,end=',')
rsj0315
发表于 2020-5-12 22:48:25
66666666666666
cct
发表于 2020-5-13 09:04:52
本帖最后由 cct 于 2020-5-13 09:08 编辑
print(list(filter(lambda x:x%3!=0 and x//10!=3 and x%10!=3,range(10,99))))
nizitao
发表于 2020-5-13 11:17:39
print(*)
xiaojiayu1994
发表于 2020-5-13 13:58:36
1
乘号
发表于 2020-5-13 17:22:44
for i in range(10,99):
first = int(str(i))
second = int(str(i))
if first != 3 and second != 3 and i % 3 != 0:
print(i, end=' ,')
2230086274
发表于 2020-5-13 17:36:53
看看
1655495937
发表于 2020-5-13 19:10:39
开学了
有谁懂
发表于 2020-5-13 23:45:53
占
wrw5192
发表于 2020-5-14 10:41:14
人家说了不许用print了,怎么这么多还用。
就是提醒一下
ps:我自己暂时没有好办法
编程change世界
发表于 2020-5-14 11:43:35
for each in range(10,100):
temp = each
if temp%10 !=3 and temp%3 != 0 and temp//10 !=3:
print(temp ,end = ' ')
huozhedian
发表于 2020-5-14 23:20:15
j = []
for i in range(10,100):
l = int(str(i))#取出首位
k = int(str(i))#取出二位
if (l != 3) and (k != 3) and ((i % 3) != 0):#首位不等于3,二位不等于3,余不等于0.
j.append(i)#加入元素
print(j)
yibo
发表于 2020-5-14 23:47:26
import sys
for i in :
sys.stdout.write(str(i) + ",")
这个简洁啊
Herry2020
发表于 2020-5-15 00:52:22
本帖最后由 Herry2020 于 2020-5-15 00:57 编辑
for i in range(10, 100):
if ('3' not in str(i)) and i%3!=0:
print(str(i)+' ', end='')
linsuye
发表于 2020-5-15 12:47:18
{:10_249:}