445
社区成员




以Python 3.9.7版本为主
Python 是一种解释型、面向对象、动态数据类型的高级程序设计语言
特点:易于学习、阅读、维护、跨平台、可扩展等
while 成立条件:
if i%7==0:
pass
else
print('当前遍历值:%s' % (value))
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# 2023-02-19
import json
day=0;
jsonString='[{"num":"66","string":"python"},{"num":"88","string":"hello"}]';
jsonObject = json.loads(jsonString)
# 循环嵌套语句
flag=0
while day<=100:
day+=1
for item in jsonObject:
if(day==int(item['num'])&day==66):
print('%s:%s\r\n' % (item['num'],item['string']))
# 跳过本次循环继续
else:
pass