课堂笔记1
程序员文章站
2022-03-07 09:55:48
#while print('111')while true: print('我们不一样') print('在人间') print('光辉岁月')print('222'),,,,,,count = 1flag = true while flag: print(count) count = count ......
#while
print('111')
while true:
print('我们不一样')
print('在人间')
print('光辉岁月')
print('222')
,,,
,,,
count = 1
flag = true
while flag:
print(count)
count = count + 1
if count > 100:
flag = false
,,,
,,,
count=1
while count <= 100:
print(count)
count = count + 1
,,,
,,,,
count = 1
sum = 0
while count <= 100:
sum = sum + count
count = count + 1
print(sum)
,,,,
count=1
while true:
print(count)
count = count + 1
if count > 100:break
字典(dic)
直接添加:dic['py9']['要添加的目录'] = 要添加目录的值
dic['py9']['female'] = 6
字典里面的元素全部大写:
dic['name'][元素位置第几] = dic['name'][元素位置第几].upper()