Commit 4f04d60c by BellCodeEditor

auto save

parent 301b5272
Showing with 20 additions and 8 deletions
from PIL import Image
import numpy as np
img = Image.open("6*2")
\ No newline at end of file
import random import wordcloud
from PIL import Image
import numpy
alist = []
for i in range(1, 101):
alist.append(i)
num = random.choice(alist)
# 请完善二分查找函数binary_search(),查找出num在列表alist里面的索引位置
def binary_search(alist,num): with open('python.txt', encoding='utf-8') as f:
\ No newline at end of file text = f.read()
img = Image.open("bell.png")
data = numpy.array(ing)
w = wordcloud.wordcloud(background_color="white"font_path='SimHei.ttf')
w.generate(text)
w.to_file("myclod.png")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment