第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
文科生表示這里已經(jīng)看不懂了
num0=[]
num1=[]
flag=False
for itemL in L:
for itemS in S:
if itemL==itemS:
num0.append(itemS)
flag=True
break
if flag==False:
num1.append(itemL)
if flag==True:
flag=False
# -*- coding: utf-8 -*-
調(diào)用函數(shù)出現(xiàn)中文需備注上訴內(nèi)容。
def func(**kwargs):
n = kwargs['names']
g = kwargs['gender']
a = kwargs['age']
index = 0
for name,gender,age in zip(n, g, a):
print('name: {},gender: {},age: {}'.format(name,gender,age))
func(name = ['吳宣儀','趙露思','高亞星'], gender = ['girl', 'girl', 'girl'], age = [25,28,27])
def greet(param='world'):
print('Hello,{}.'.format(param))
greet()
greet(123)
def func(p):
sum_c = 0
mul = 1
if isinstance(p,list):
for i in param:
sum_c += i
return sum_c
if isinstance(p,tuple):
for i in range(len(p)):
mul *= p[i]
return mul
c = func((1,2,15))
print(c)
p = func([1,12,3])
print(p)
def sum_num(n):
if n == 1:
return 1
return n + sum_num(n-1)
sum_number = sum_num(100)
print(sum_number)
def sub_sum(list):
sum_even = 0
sum_odd = 0
for i in range(len(list)):
if i % 2 == 0:
sum_even += list[i]
else:
sum_odd += list[i]
return sum_even,sum_odd
s_even,s_odd = sub_sum([1,2,5,9,3,11])
print("s_even: ",s_even)
print("s_odd: ",s_odd)
def square_of_sum(list):
sum = 0
for i in list:
sum += i * i
return sum
sum_num = square_of_sum([1,2,3])
print(sum_num)
def sum(list):
sum = 0
for i in list:
sum += i * i
return sum
list_num = []
for i in range(1,100):
list_num.append(i)
sum_num = sum(list_num)
print(sum_num)
s1 = set([1, 2, 3, 4, 5])
s2 = set([1, 2, 3, 4, 5, 6, 7, 8, 9])
result = s1.isdisjoint(s2)
print(result)
s = set()
for i in s1:
if i in s2:
s.add(i)
print(s)
首頁(yè)上一頁(yè)1234567下一頁(yè)尾頁(yè)
課程須知
如果您了解程序設(shè)計(jì)的基本概念,會(huì)簡(jiǎn)單使用命令行,了解中學(xué)數(shù)學(xué)函數(shù)的概念,那么對(duì)課程學(xué)習(xí)會(huì)有很大的幫助,讓您學(xué)起來(lái)得心應(yīng)手,快速進(jìn)入Python世界。
老師告訴你能學(xué)到什么?
通過(guò)本課程的學(xué)習(xí),您將學(xué)會(huì)搭建基本的Python開(kāi)發(fā)環(huán)境,以函數(shù)為基礎(chǔ)編寫(xiě)完整的Python代碼,熟練掌握Python的基本數(shù)據(jù)類型以及l(fā)ist和dict的操作,靈活使用流程控制語(yǔ)句。

微信掃碼,參與3人拼團(tuán)

微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

友情提示:

您好,此課程屬于遷移課程,您已購(gòu)買該課程,無(wú)需重復(fù)購(gòu)買,感謝您對(duì)慕課網(wǎng)的支持!

本次提問(wèn)將花費(fèi)2個(gè)積分

你的積分不足,無(wú)法發(fā)表

為什么扣積分?

本次提問(wèn)將花費(fèi)2個(gè)積分

繼續(xù)發(fā)表請(qǐng)點(diǎn)擊 "確定"

為什么扣積分?

舉報(bào)

0/150
提交
取消