Cool Utils
Release 1.3.2 (The All Around Update!)
เอกสาร
นี่คือเครื่องมือยูทิลิตี้ที่ยอดเยี่ยมที่คุณสามารถใช้ใน Python มีเครื่องมือบางอย่างที่คุณอาจพบว่ามีประโยชน์มากคุณสามารถใช้สิ่งนี้ในโครงการใด ๆ และ Utils บางอย่างอาจช่วยคุณได้มากและประหยัดเวลาได้มากเนื่องจากเป็นฟังก์ชั่นที่เรียบง่าย เราหวังว่าคุณจะชอบประโยชน์ของเรา ขอให้เป็นวันที่ดี!
การติดตั้ง PYPI
Windows:
$ pip install -U cool-utilsLinux/MacOS:
$ python3 -m pip install -U cool-utilsการติดตั้งการพัฒนา
Windows:
$ pip install git+https://github.com/Senarc-Studios/Cool-UtilsLinux/MacOS:
$ python3 -m pip install -U git+https://github.com/Senarc-Studios/Cool-Utilsรวบรวม:
from cool_utils import Compile
strings = [ "This" , "Is" , "A" , "String" ]
num_list = [ 9 , 4 , 2 ]
print ( Compile . string ( strings , startswith = "Hey, " , endswith = "." , joints = " " ))
print ( Compile . numbers ( num_list , startswith = 6 , endswith = 0 ))
>> Hey , This Is A String .
> > 69420JSON:
import cool_utils
json = cool_utils . JSON . open ( "sample" )
json . register_value ( variable = "foo" , value = "bar" ) # This creates a JSON file.
data = json . get_data ( variable = "foo" )
invalid_data = json . get_data ( "non-existant value" ) # You can do this instead of doing the variable's name.
print ( data )
print ( invalid_data )
>> bar
>> NoneGlobalJson:
import cool_utils
cool_utils . GlobalJSON . open ( "sample" )
cool_utils . GlobalJSON . register_value ( variable = "foo" , value = "bar" )
data = cool_utils . GlobalJSON . get_data ( variable = "foo" )
invalid_data = cool_utils . GlobalJSON . get_data ( "non-existant value" )
print ( data )
print ( invalid_data )
>> bar
>> None สิ่งนี้จะเป็นไปไม่ได้หากไม่มีคนเหล่านี้