Can the code be open source after patent application?

Yes, I searched it later and found it was ok. There is a saying like this (slightly modified): open source is called open source. Many people simply think that open source software is free, and the biggest feature of open source software is openness, that is, anyone can get the source code of the software, which can be modified, studied and even redistributed, of course, this is within the scope of copyright restrictions. Computer software patent application is aimed at the architecture of software design, or simply understood as the idea of solving problems. The solution to the problem belongs to the use of computer computing, analysis and other capabilities to achieve. The architecture of the same software design can be realized by different programming languages or by different people in different ways, which is the source of software code copyright. Therefore, an open source project can apply for patent protection if it has innovation in software design architecture and corresponding invention points. Software design architecture belongs to the category of patent system protection, and code belongs to the category of copyright system protection. They are related, but not contradictory. In addition, whether it is open source or not, patents and copyrights still exist. The simple expression is: no one can use these open source codes for commercial purposes. Open source is more for learning fields such as R&D and software upgrade and improvement, and open source does not mean free. (Liu Kunpeng comments: The last paragraph is wrong. Open source can be used in business, in short, the modification of open source must also be open source).