亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
a='AABCDEFGHHIJ'

print(a[1:9])
print(r'''"To be, or not to be": that is the question.
Whether it's nobler in the mind to suffer.''')
num=0
sum=0
while True:
if num>1000:
break
sum=sum+num
num=num+2
print(sum)
這樣可以么
L = [[1, 2, 3], [5, 3, 2], [7, 3, 2]]
for a in L:
sa = (a[0]*a[1]+a[1]*a[2]+a[0]*a[2])*2
print(sa)

22
62
82
def greet(s='world'):
return 'Hello,{}.'.format(s)
print(greet())
print(greet('Python'))
輸出:
Hello,world.
Hello,Python.
看了兩天網上的教程,看不懂一個python全排列,看來之前的C都白學了,難受啊
num = 0
sum = 0
while True:
if num > 1000:
break
if num % 2 == 0 :
sum = num + sum
num = num + 1
print(sum) =》 250500
d = {'Alice': [50, 61, 66], 'Bob': [80, 61, 66], 'Candy': [88, 75, 90]}
for key in d:
value = d[key]
for ch in value:
print (key,ch)
print("這是一句中英文混合的%s字符串:%s"%("python","Hello\tWorld"))
template1="Life is short"
template2="you need python"
print("{0},{1}".format(template1,template2))

template="{L},{y}"
L="life is short"
y="you need python"
print(template.format(L=L,y=y))
print(r'''"To be, or not to be":that is the question
Whether it's nobler in the mind to suffer.''')
要用print輸出才可以
L = ['Alice', 'Bob', 'Candy', 'David', 'Ellena']
S=[89, 72, 88, 79, 99]
Ss=[89, 72, 88, 79, 99]

def getnames(name):
return Ss.index(name)

S.sort(reverse=True);

for sa in S:
print(sa)

print(L[getnames(sa)])
print(r'''
''')
a = 'python'
print('hello,'+( a or 'world'))
b = ''
print('hello,'+(b or 'world'))
L = [95.5, 85, 59, 66, 72]
L.sort(reverse=True)
for i in range(3):
print(L[i])
課程須知
如果您了解程序設計的基本概念,會簡單使用命令行,了解中學數學函數的概念,那么對課程學習會有很大的幫助,讓您學起來得心應手,快速進入Python世界。
老師告訴你能學到什么?
通過本課程的學習,您將學會搭建基本的Python開發環境,以函數為基礎編寫完整的Python代碼,熟練掌握Python的基本數據類型以及list和dict的操作,靈活使用流程控制語句。

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消