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

為了賬號安全,請及時綁定郵箱和手機立即綁定
a=3.14
b=1.57
c=a*b
print(round(c,2))
a='hello world'
b='hello world'
c='hello world'
print(a)
print(b)
print(c)
# Enter a code
a=3.1415926
b='learn python in imooc'
c=100
d=0b1101
print isinstance(a,float)
print isinstance(b,str)
print isinstance(c,int)
print isinstance(d,int)
# coding: utf-8
a='zhe shi zhong guo'
b='這是中國'
c='"這是一句中英文混合的Python字符串:Hello World!"'
print(a)
print(b)
print(c)
# Enter a code
a='Life is short,{}'
b='you need Python.'
result=a.format(b)
print(result)


a='Life is short,{c}'
b='you need Python.'
result=a.format(c=b)
print(result)
# Enter a code
a='Life is short,{}'
b='you need Python.'
result=a.format(b)
print(b)

a='Life is short,{c}'
b='you need Python.'
result=a.format(c=b)
print(result)
# Enter a code
a=r''' '\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer. '''
print(a)
入門簡單么?
我覺得沒必要判斷奇偶啊,直接num=0 每次加2就可以了。
num = 0
sum = 0
while True:
if num > 1000:
break
sum = sum + num
num = num + 2
print(sum)
#..........
ab= ' {}'
b =ab.format('Life is short,you need python')
print(b)
N = 'Life is {0},you need {1}'
b2= N.format('short','python')
print(b2)
N2 ='Life is {w},you need {y}'
short ='short'
python ='pythin'
b3=N2.format(w=short,y=python)
print(b3)
moban='{a}  {c},xrnewh1 {e} {f}.'
a1='Life'
b1='is'
c1='short'
d1='you'
e1='need'
f1='Python'
result=moban.format(a=a1,b=b1,c=c1,d=d1,e=e1,f=f1)
print(result)
num=0
L = ['Alice', 66, 'Bob', True, 'False', 100]
while num<=5:
num=num+1
if num%2==0:
continue

print(L[num])
L=[75,92,59,68,99]
sum=0
for i in range(len(L)):
sum=L[i]+sum
print(sum/len(L))
L = [95.5, 85, 59, 66, 72]
a=0
b=0
c=0

for ch in L:
temp=ch

if ch>a :
a=temp
elif ch>b:
b=temp
elif ch>c:
c=temp
print(a,b,c)
from itertools import permutations
s1 = 'ABC'
s2 = '123'
s3 = 'xyz'
for ss1 in s1:
for ss2 in s2:
for ss3 in s3:
for s in permutations([ss1, ss2, ss3]):
print(''.join(s))
課程須知
如果您了解程序設計的基本概念,會簡單使用命令行,了解中學數學函數的概念,那么對課程學習會有很大的幫助,讓您學起來得心應手,快速進入Python世界。
老師告訴你能學到什么?
通過本課程的學習,您將學會搭建基本的Python開發環境,以函數為基礎編寫完整的Python代碼,熟練掌握Python的基本數據類型以及list和dict的操作,靈活使用流程控制語句。

微信掃碼,參與3人拼團

微信客服

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

幫助反饋 APP下載

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

公眾號

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

友情提示:

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

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消