使简单的任务更容易

LocalLib的Python项目详细描述


感谢您使用locallib!下面是它定义的函数的列表:

locallib.pymath:

Contains simple math functions: add, subtract, multiply, and divide.

locallib.pygui:

Contains functions for sending notifications:

	Notification(title, msg, dur, threaded=None):

		For Windows 10. Sends a notification to the system notification bar.
		If a threaded notification is desired, set threaded to True.

locallib.pystrs:

Contains functions for string editing:

	Contains(string, substring):

		Checks if a substring or char occurs in the specified string, and returns True or False.

	TrimLastChar(string):

		Returns a string with the last character removed from the given string.

	TrimFirstChar(string):

		Returns a string with the first character removed from the give string.

	RemoveAt(string, index):

		Returns an edited string with a character removed at the specified zero-based index.

	Remove(string, char):

		Returns a string with all occurrences of the specified character removed.

	RemoveFirst(string, char):

		Removes the first occurrence of the specified character from the given string and returns the new string.

	RemoveLast(string, char):

		Removes the last occurrence of the specified character from the given string and returns the new string.

	RemoveRange(string, startindex, stopindex):

		Removes a range of characters by index from the given string and returns the new string.

locallib.圣经:

Contains functions for Bible verse actions:

	GetVerse(version, book, chap, verse):

		Returns the specified verse from the given version, book, chapter, and verse.  Currently, the only avaliable version is KJV.


		Use it like so:

			from locallib import Bible as B

			verse = B.GetVerse('KJV', 'Genesis', 1, 1)
			print(verse)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将getAttribute()scriptlet重写为JSP/HTML中的JSTL?   java接口,用于在KeyClope中执行电子邮件操作   java我试图将今天的日期添加到我的对象,但构造函数有问题   关于生成示例图表示(RDF或VEV元组)的java建议   httpclient在Java中使用空格编码URL的工作方式不正确   java NDimensional点类   java在编写查找ArrayList中最大整数索引的方法时遇到问题   java生成对象并放入arraylist,无重复项   在Java中使用泛型   在Java中使用“h=Math.min(h,h)”有什么逻辑原因吗?   安卓 Java for loop总是返回true   覆盖率java工具   java试图发送int时出现“空对象引用”错误