#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()