Created
April 21, 2021 17:47
-
-
Save EduardoThums/4b12572c93e00c5065e6c132e43ccf49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEFAULT_ASCII_TRUCK = """ | |
| __________________________________________________________ | |
| | | | |
| / | | | |
| /---, | | | |
| -----# ==| |{row_2}| | |
| | :) # ==| |{row_1}| | |
| -----'----# | |_________________________________________________________| | |
| |)___() '# |______====____ \___________________________________| | |
| [_/,-,\"--"------ //,-, ,-,\\\ |/ //,-, ,-, ,-,\\ __# | |
| ( 0 )|===******||( 0 )( 0 )||- o '( 0 )( 0 )( 0 )|| | |
| ----'-'--------------'-'--'-'-----------------------'-'--'-'--'-'-------------- | |
| """ | |
| if __name__ == '__main__': | |
| packages = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] | |
| packages_template = '' | |
| if len(packages) > 28: | |
| pass | |
| # TODO: divide packages | |
| for index, value in enumerate(packages): | |
| packages_template = f'{packages_template}|{value}' | |
| packages_template = f'{packages_template}|' | |
| align = 57 - len(packages_template) | |
| row_1 = f'{packages_template}' + ' ' * align | |
| row_2 = f'' + ' ' * 57 | |
| print(DEFAULT_ASCII_TRUCK.format( | |
| row_1=row_1, | |
| row_2=row_2 | |
| )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment