最新回答 / 洛笙厭璃
那就是你的輸入有問題,不符合題目要求#Enter a codeprint(45678+0x12fd2)print("Learn Python in imooc")print(100 < 99)print(0xff == 255)
2019-12-25
最贊回答 / 慕九州2162217
utf-8是unicode中的一種,用來表示其他語言如中文,日文等。在python里面指定utf-8,需要在首行加
#?-*-?coding:?utf-8?-*-然后保存文檔為uft-8格式
2019-12-25
最新回答 / weixin_慕仔5360778
def firstCharUpper(s):? ? return s[0].upper()+s[1:]print firstCharUpper('hello')print firstCharUpper('sunday')print firstCharUpper('september')
2019-12-24
最新回答 / 慕蓋茨6013945
<...圖片...>并不是你的問題,是他問題和后臺要校驗的結果根本對不上,誤導了,根據結果可以看出后臺校驗的結果是:print r'''"to be,or not to be":that is the question.whether it's nobler in the mind to suffer.'''
2019-12-23
最新回答 / qq_慕沐5201434
你這個是等比數列的通項相加公式:<...圖片...>?即:2^P(n-1)----a1=1
sum?=?0 x?=?1 n?=?1 while?True: ????sum?=?sum?+?2**(n-1) ????n?=?n+1 ????if?n?>20: ????????break print?sum,n
2019-12-22