BaiChuanByte / HelloWorld

A Hello World program written in many programming languages.
Do What The F*ck You Want To Public License
2 stars 2 forks source link

bug-fix(hello.any) Fix a bug: Some Python versions have no output #1 #2

Closed fexcode closed 1 month ago

fexcode commented 1 month ago

Fix # 1 Error C. Python language runs normally, BF not tested (Tested)

fexcode commented 1 month ago

Do not use code # 1, as there is a Python version conflict bug. This PR code solves this bug.

fexcode commented 1 month ago

Why don't we use import __hello__ ?

Because in Python 3.11 the and modules no longer print the text when they are imported. You now have to call the module’s main method to get the same effect: __hello__ __phello__ (See https://blog.pecar.me/import-hello for details)

fexcode commented 1 month ago

I have added the test folder, but I think that the '.gitignore' file may have some usage in the future so I have not deleted it

BaiChuanByte commented 1 month ago

Why place files in folder test? Do I have to change all the files when updating?

fexcode commented 1 month ago

DELETE THE TEST FOLDER!!!!!

fexcode commented 1 month ago

test => test-cache (To avoid user confusion)