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

為了賬號安全,請及時綁定郵箱和手機立即綁定
文科生表示這里已經(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)
L = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
S = set([1, 3, 5, 7, 9, 11])
for i in L:
if i in S:
continue
S.add(i)
print(S)
T = (1, 'CH', [3, 4])
L = list(T)
L[2] = tuple(L[2])
T = tuple(L)
print(T)
T = ((1+2), ((1+2),), ('a'+'b'), (1, ), (1,2,3,4,5))
count = 0
for i in T:
if type(i) == tuple:
count += 1
print(count)
首頁上一頁1234567下一頁尾頁
課程須知
如果您了解程序設(shè)計的基本概念,會簡單使用命令行,了解中學(xué)數(shù)學(xué)函數(shù)的概念,那么對課程學(xué)習(xí)會有很大的幫助,讓您學(xué)起來得心應(yīng)手,快速進(jìn)入Python世界。
老師告訴你能學(xué)到什么?
通過本課程的學(xué)習(xí),您將學(xué)會搭建基本的Python開發(fā)環(huán)境,以函數(shù)為基礎(chǔ)編寫完整的Python代碼,熟練掌握Python的基本數(shù)據(jù)類型以及l(fā)ist和dict的操作,靈活使用流程控制語句。

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

微信客服

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

幫助反饋 APP下載

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

公眾號

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

友情提示:

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

本次提問將花費2個積分

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

為什么扣積分?

本次提問將花費2個積分

繼續(xù)發(fā)表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消