使简单的任务更容易

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 Eclipse内存分析器(MAT):不显示当前正在运行的进程   java Apache Velocity:转义字符不能作为关联数组键用于PHP   不截断零的java格式十进制输出   在另一个类文件中调用时返回空值的java getter   java集合获取连接   java解析json使用Gson登录系统应用程序强制关闭   java DelferredResult带有两个请求的ajax请求   java可降低功耗,同时应使用无线   java BoxLayout无法共享错误?   java如何使用计时器制作闹钟   java使用OAuth2保护RESTWeb服务:一般原则   java在一个jframe上显示多个图像和按钮