EK伊人寻

班级

TA还未加入任何班级

课程

9721浏览/ 311学员/ 2.8评分
乱流
免费
2万+浏览/ 931学员/ 4.7评分
RedWOod
¥9.90

笔记

来自开始编程(0)

print("i love pizza")print("pizza"*20)print("yum"*40)print("i'm full.")

来自第二个 Python 程序(0)

import randomsecret = random.randint(1,100)guess = 0tries = 0print("a ha,i'm jack,i have a secret!")print("it is a number between 1 to 99,you have six times to guess,come on!")while guess != secret and tries < 6:    guess = int(input("a number:"))    if guess < secret:        print("too small")    elif guess > secret:        print("too big")    tries = tries + 1if guess == secret:    print("well done,you got it.")else:    print("you have no chance,next time.")    print("it is",secret) 

来自来自互联网的输入(0)

from urllib.request import urlopenimport sslssl._create_default_https_context = ssl._create_unverified_contextfile  = urlopen('heeps://www.huxiu.com/article/323011.html')message = file.read().decode(encoding="utf-8",errors="srrict")print(message)

来自通过 GUI 输入(0)

import easyguiflavor=easygui.buttonbox("你喜欢什么口味的冰激凌?",choices=["香草味","巧克力味","草莓味"])easygui.msgbox("你选择了"+flavor) import easyguinum=easygui.integerbox("你想填入什么数字?",title="输入整数",lowerbound=0,upperbound=1000)easygui.msgbox("你填写了"+str(num)) 

留言

功能维护升级中,维护完成完后将再次开放,非常抱歉给您学习造成的不便。