1.准备好Python3.7+环境,确保pip已经安装/添加到Path
2.最好准备以下库:
* pillow
* matplotlib
* jieba
* wordcloud
3.输入命令进行安装:
* [Widnows][Powershell/cmd]pip install usefultools --upgrade
* [Linux][Bash]sudo pip install usefultools --upgrade
使用方法请使用以下格式:
位于总集的英文名.方法的英文名
,
例如:
turtle_processing.tgt()
- Can:Write something on a photo
- oepnimg:OpenIMG(PNG,GIF,JPG,JPEG,BMP)
- size:font size
- rotate:font rotate
- color:font color
- ttf:Using TTF font
- text:What do you want to write?
- Can:load a json file
- filename:Open file
- mode:How to open the file(r,w,r+,w+,rb,wb,ab,rb+,wb+,ab+)
- Can:Find a number in a list
- lst:find a number in what?
- Can:Find info in your IDnumber in China(like:Your Gender,when you was born)
- idnum:Your IDnumber in China
- Can:
- Press your First Name into it
- Print a list
-Can:Print a log
- logs:Log you want to print
- mode:Set the name of the log sender. The options are:
- System
- Debug
- User
- Your optional name
- rtn:Return all of the logs
- show_printer:Select whether to display the sender name (defined in mode)
-Can:Get your Opering System type(Windows/Mac or Linux)
- Let turtle move to(x,y)
-Can:init your turtle
- x,y:go to (x,y)
- c:set pen_color and fill_color c
- Can:Draw a five pointed star at (x,y)
- long:l
- color:c
- Angle adjustment is not supported temporarily
动图生成/summon_gif(gif_dir,sort_reverse=False,ext_file=[".png",".jpg",".jpeg",".bmp"],output_name="Deflut.gif",etc.):
-Can:Summon a gif by pictures
- gif_dir:Where are your imgs to summon a gif?
- sort_reverse:Do you want to invert your gif?If you want,set this True.
- ext_file:allowed file exts
- output_name:Your gif's name
- txt,ttf,size,ttf_color:Please look at [bqbzz]
- use_own_color_list:If this porgram is using Multi-group-color-list,please set it True.
-Can:make a gif become pngs
- myDir:Images will save at here.
- open_gif:Which gif do you want to boom it?
-Can:Open a file in the current directory by default -file_name:Your file's name
1.2021/10/31 1.1.0 with hotfix 1
2.2021/12/20 1.1.1 (Include in Version1.1.2 )
3.2022/1/17 1.1.2
4.2022/1/17 1.1.2 with README.md update
5.2022/1/21 1.1.3
6.2022/3/6 1.1.4
7.2022/3/29 1.1.4 with hotfix 1(1.1.1.4)
8.2022/5/22 1.1.5(The BigFix)