欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

课堂笔记1

程序员文章站 2022-06-17 08:52:45
#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()